Skip to content

Commit

Permalink
scsi: sd: Fix typo in sd_first_printk()
Browse files Browse the repository at this point in the history
Commit b2bff6c ("[SCSI] sd: Quiesce mode sense error messages")
added the macro sd_first_printk(). The macro takes "sdsk" as argument
but dereferences "sdkp". This hasn't caused any real issues since all
callers of sd_first_printk() have an sdkp. But fix the typo.

[mkp: Turned this into a real patch and tweaked commit description]

Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Dietmar Hahn authored and Martin K. Petersen committed Feb 13, 2019
1 parent 0de0540 commit df46cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/sd.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static inline struct scsi_disk *scsi_disk(struct gendisk *disk)

#define sd_first_printk(prefix, sdsk, fmt, a...) \
do { \
if ((sdkp)->first_scan) \
if ((sdsk)->first_scan) \
sd_printk(prefix, sdsk, fmt, ##a); \
} while (0)

Expand Down

0 comments on commit df46cac

Please sign in to comment.