From: NeilBrown Date: Mon, 26 Jun 2006 07:27:37 +0000 (-0700) Subject: [PATCH] md: remove useless ioctl warning X-Git-Tag: v2.6.18-rc1~646 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9443a1d1f72c688646278c06d0a9a3c79e895325;p=linux-2.6 [PATCH] md: remove useless ioctl warning This warning was slightly useful back in 2.2 days, but is more an annoyance now. It makes it awkward to add new ioctls (that we we are likely to do that in the current climate, but it is possible). Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index f19b874753..30a93d6492 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -3977,11 +3977,6 @@ static int md_ioctl(struct inode *inode, struct file *file, goto done_unlock; default: - if (_IOC_TYPE(cmd) == MD_MAJOR) - printk(KERN_WARNING "md: %s(pid %d) used" - " obsolete MD ioctl, upgrade your" - " software to use new ictls.\n", - current->comm, current->pid); err = -EINVAL; goto abort_unlock; }