[<prev] [next>] [day] [month] [year] [list]
Message-Id: <S1752280AbeDLBXk/20180412012340Z+541@vger.kernel.org>
Date: Thu, 12 Apr 2018 11:23:38 +1000
From: Finn Thain <fthain@...egraphics.com.au>
To: Jens Axboe <axboe@...nel.dk>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>,
linux-m68k@...ts.linux-m68k.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] block/amiflop: Don't log an error message for an invalid
ioctl
Do as the swim3 driver does and just return -ENOTTY.
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: linux-m68k@...ts.linux-m68k.org
Signed-off-by: Finn Thain <fthain@...egraphics.com.au>
---
drivers/block/amiflop.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c
index 3aaf6af3ec23..b9fb794c1255 100644
--- a/drivers/block/amiflop.c
+++ b/drivers/block/amiflop.c
@@ -1533,9 +1533,7 @@ static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode,
return p->type->read_size;
#endif
default:
- printk(KERN_DEBUG "fd_ioctl: unknown cmd %d for drive %d.",
- cmd, drive);
- return -ENOSYS;
+ return -ENOTTY;
}
return 0;
}
--
2.16.1
Powered by blists - more mailing lists