Message ID | 20210824010937.56395-1-jing.yangyang@zte.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [linux-next] drivers:ataflop: fix warning comparing pointer to 0 | expand |
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c index a093644..6cd28df 100644 --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c @@ -1436,7 +1436,7 @@ static int floppy_revalidate(struct gendisk *disk) if (test_bit(drive, &changed_floppies) || test_bit(drive, &fake_change) || - p->disktype == 0) { + !p->disktype) { if (UD.flags & FTD_MSG) printk(KERN_ERR "floppy: clear format %p!\n", UDT); BufferDrive = -1;