diff options
author | Denis Vlasenko | 2007-11-06 03:05:54 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-11-06 03:05:54 +0000 |
commit | 6bef3d1d2216234454875052220ca0f477a820b4 (patch) | |
tree | 717060345370b781d3d1cde7ab4dd29304a066e8 /miscutils/hdparm.c | |
parent | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff) | |
download | busybox-6bef3d1d2216234454875052220ca0f477a820b4.zip busybox-6bef3d1d2216234454875052220ca0f477a820b4.tar.gz |
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r-- | miscutils/hdparm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 93b1aac..03a30e6 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -1111,7 +1111,8 @@ static void identify(uint16_t *val) /* reset result */ jj = val[HWRST_RSLT]; if ((jj & VALID) == VALID_VAL) { - if (!(oo = (jj & RST0))) + oo = (jj & RST0); + if (!oo) jj >>= 8; if ((jj & DEV_DET) == JUMPER_VAL) strng = " determined by the jumper"; |