mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
ataflop: Add missing semicolon to return statement
drivers/block/ataflop.c: In function ‘ataflop_probe’: drivers/block/ataflop.c:2023:2: error: expected expression before ‘if’ 2023 | if (ataflop_alloc_disk(drive, type)) | ^~ drivers/block/ataflop.c:2023:2: error: ‘return’ with a value, in function returning void [-Werror=return-type] drivers/block/ataflop.c:2011:13: note: declared here 2011 | static void ataflop_probe(dev_t dev) | ^~~~~~~~~~~~~ Fixes: 46a7db492e7a2740 ("ataflop: address add_disk() error handling on probe") Reported-by: noreply@ellerman.id.au Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20211106185549.1578444-1-geert@linux-m68k.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
ec28fcc6cf
commit
38987a872b
@ -2019,7 +2019,7 @@ static void ataflop_probe(dev_t dev)
|
||||
if (drive >= FD_MAX_UNITS || type >= NUM_DISK_MINORS)
|
||||
return;
|
||||
if (unit[drive].disk[type])
|
||||
return
|
||||
return;
|
||||
if (ataflop_alloc_disk(drive, type))
|
||||
return;
|
||||
if (add_disk(unit[drive].disk[type]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user