Skip to content

Commit

Permalink
hwmon: applesmc: specified number of bytes to read should match actual
Browse files Browse the repository at this point in the history
At one single place in the code, the specified number of bytes to read and
the actual number of bytes read differ by one.  This one-liner patch fixes
that inconsistency.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Cc: Nicolas Boichat <nicolas@boichat.ch>
Cc: Riki Oktarianto <rkoktarianto@gmail.com>
Cc: Mark M. Hoffman <mhoffman@lightlink.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Henrik Rydberg authored and Linus Torvalds committed Oct 20, 2008
1 parent 865c295 commit 0522409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/applesmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int applesmc_get_key_type(char* key, char* type)
return -EIO;
}

outb(5, APPLESMC_DATA_PORT);
outb(6, APPLESMC_DATA_PORT);

for (i = 0; i < 6; i++) {
if (__wait_status(0x05))
Expand Down

0 comments on commit 0522409

Please sign in to comment.