From 75719533dafe8e3849db7e1945a72ab60b2d173e Mon Sep 17 00:00:00 2001 From: Li kunyu Date: Mon, 17 Oct 2022 10:40:18 +0800 Subject: [PATCH] scsi: sd: Fix typo in sd_first_printk() 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. Signed-off-by: Li kunyu --- drivers/scsi/sd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index a7d4f50b67d43..e5bdf0a100715 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h @@ -133,7 +133,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)