Skip to content

Commit 38987a8

Browse files
geertuaxboe
authored andcommitted
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: 46a7db4 ("ataflop: address add_disk() error handling on probe") Reported-by: [email protected] Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent ec28fcc commit 38987a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/ataflop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ static void ataflop_probe(dev_t dev)
20192019
if (drive >= FD_MAX_UNITS || type >= NUM_DISK_MINORS)
20202020
return;
20212021
if (unit[drive].disk[type])
2022-
return
2022+
return;
20232023
if (ataflop_alloc_disk(drive, type))
20242024
return;
20252025
if (add_disk(unit[drive].disk[type]))

0 commit comments

Comments
 (0)