[PATCH] remove gcc-2 checks
[linux-2.6.git] / net / unix / af_unix.c
index 1ddd36d50091b32c7e40890cfff405b16e1fe5db..5f6ae79b8b1627db8a71be971712b2a6ace18de4 100644 (file)
@@ -1859,7 +1859,7 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
                }
 
                default:
-                       err = dev_ioctl(cmd, (void __user *)arg);
+                       err = -ENOIOCTLCMD;
                        break;
        }
        return err;