]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mei: remove dev_err message on an unsupported ioctl
authorColin Ian King <colin.king@canonical.com>
Tue, 27 Feb 2018 16:21:05 +0000 (16:21 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 9 Apr 2018 13:41:58 +0000 (10:41 -0300)
BugLink: http://bugs.launchpad.net/bugs/1762370
commit bb0829a741792b56c908d7745bc0b2b540293bcc upstream.

Currently the driver spams the kernel log on unsupported ioctls which is
unnecessary as the ioctl returns -ENOIOCTLCMD to indicate this anyway.
I suspect this was originally for debugging purposes but it really is not
required so remove it.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/misc/mei/main.c

index e825f013e54e42ff171f1c93e776770fbfb3b1d1..22efc039f3022237d1bc65b625cabb6ddb9fa3b1 100644 (file)
@@ -507,7 +507,6 @@ static long mei_ioctl(struct file *file, unsigned int cmd, unsigned long data)
                break;
 
        default:
-               dev_err(dev->dev, ": unsupported ioctl %d.\n", cmd);
                rets = -ENOIOCTLCMD;
        }