]> git.karo-electronics.de Git - linux-beck.git/commitdiff
debris left by "[SCSI] libfcoe: Remove mutex_trylock/restart_syscall checks"
authorAl Viro <viro@ZenIV.linux.org.uk>
Fri, 7 Dec 2012 14:10:14 +0000 (14:10 +0000)
committerRobert Love <robert.w.love@intel.com>
Fri, 14 Dec 2012 18:38:56 +0000 (10:38 -0800)
AFAICS, the situation for fcoe_transport_disable() seems to be
the same as for fcoe_transport_enable().  IOW, shouldn't it have
restart_syscall() removed as well?  I don't see any in-tree ->disable()
instances that could return -ERESTARTSYS, anyway...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Robert Love <robert.w.love@intel.com>
drivers/scsi/fcoe/fcoe_transport.c

index dd1aeb45f4cd7ebcb5bbd2163c14d04c3e464372..f3a5a53e863133203044814f892286704cf70630 100644 (file)
@@ -962,11 +962,7 @@ out_putdev:
        dev_put(netdev);
 out_nodev:
        mutex_unlock(&ft_mutex);
-
-       if (rc == -ERESTARTSYS)
-               return restart_syscall();
-       else
-               return rc;
+       return rc;
 }
 
 /**