projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop 'size' argument from bio_endio and bi_end_io
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
block
/
floppy.c
diff --git
a/drivers/block/floppy.c
b/drivers/block/floppy.c
index f0a86e201b4444a7a6b15d4980293a8ecfd1d8ed..80483aac4cc9b6a166f9ed9c059fb8ec00c8806f 100644
(file)
--- a/
drivers/block/floppy.c
+++ b/
drivers/block/floppy.c
@@
-3810,14
+3810,10
@@
static int check_floppy_change(struct gendisk *disk)
* a disk in the drive, and whether that disk is writable.
*/
* a disk in the drive, and whether that disk is writable.
*/
-static
int floppy_rb0_complete(struct bio *bio, unsigned int bytes_done
,
+static
void floppy_rb0_complete(struct bio *bio
,
int err)
{
int err)
{
- if (bio->bi_size)
- return 1;
-
complete((struct completion *)bio->bi_private);
complete((struct completion *)bio->bi_private);
- return 0;
}
static int __floppy_read_block_0(struct block_device *bdev)
}
static int __floppy_read_block_0(struct block_device *bdev)