From: Kashyap, Desai Date: Wed, 7 Oct 2009 05:56:54 +0000 (+0530) Subject: mptctl : Remove printk which floods unnecessary messages to var/log/message X-Git-Tag: firefly_0821_release~10186^2~1733 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8e3400b3d1f568b2ec4349a8e8070c1da867dc96;p=firefly-linux-kernel-4.4.55.git mptctl : Remove printk which floods unnecessary messages to var/log/message commit e39e145dfb78d4e20d89139d2576306b4279c126 upstream. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley Cc: maximilian attems Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index 9b2e2198aee9..352acd05c46b 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c @@ -621,11 +621,8 @@ __mptctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg) */ iocnumX = khdr.iocnum & 0xFF; if (((iocnum = mpt_verify_adapter(iocnumX, &iocp)) < 0) || - (iocp == NULL)) { - printk(KERN_DEBUG MYNAM "%s::mptctl_ioctl() @%d - ioc%d not found!\n", - __FILE__, __LINE__, iocnumX); + (iocp == NULL)) return -ENODEV; - } if (!iocp->active) { printk(KERN_DEBUG MYNAM "%s::mptctl_ioctl() @%d - Controller disabled.\n",