Merge remote-tracking branch 'spi/fix/core' into spi-linus
[firefly-linux-kernel-4.4.55.git] / fs / bio.c
index 9156bd1f151ca7d86017919a1e8656d07e02d829..75c49a38223969c1f7256868cb3b09fc7d3bd286 100644 (file)
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -1770,15 +1770,6 @@ void bio_endio(struct bio *bio, int error)
                } else {
                        if (bio->bi_end_io)
                                bio->bi_end_io(bio, error);
-                       else {
-                               char dev_name[BDEVNAME_SIZE];
-
-                               WARN(1, "bio_endio: bio for %s without endio\n",
-                                       bio->bi_bdev ? bdevname(bio->bi_bdev,
-                                       dev_name) : "(unknown)");
-                               bio_put(bio);
-                       }
-
                        bio = NULL;
                }
        }