compat_ioctl: remove last RAID handling code
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 Sep 2018 09:35:56 +0000 (11:35 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:45 +0000 (17:23 +0200)
Commit aa98aa31987a ("md: move compat_ioctl handling into md.c")
already removed the COMPATIBLE_IOCTL() table entries and added
a complete implementation, but a few lines got left behind and
should also be removed here.

Cc: linux-raid@vger.kernel.org
Cc: Song Liu <song@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/compat_ioctl.c

index 6070481f2b6a81aeefacc7a764c10cb4433da95e..1ed32cca2176ee7b80be6e551d2299e2410016e4 100644 (file)
@@ -462,19 +462,6 @@ static long do_ioctl_trans(unsigned int cmd,
 #endif
        }
 
-       /*
-        * These take an integer instead of a pointer as 'arg',
-        * so we must not do a compat_ptr() translation.
-        */
-       switch (cmd) {
-       /* RAID */
-       case HOT_REMOVE_DISK:
-       case HOT_ADD_DISK:
-       case SET_DISK_FAULTY:
-       case SET_BITMAP_FILE:
-               return vfs_ioctl(file, cmd, arg);
-       }
-
        return -ENOIOCTLCMD;
 }