This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / s390 / scsi / zfcp_sysfs_port.c
index 11a27c1..e0ace93 100644 (file)
@@ -26,7 +26,7 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#define ZFCP_SYSFS_PORT_C_REVISION "$Revision: 1.41 $"
+#define ZFCP_SYSFS_PORT_C_REVISION "$Revision: 1.40 $"
 
 #include "zfcp_ext.h"
 
@@ -125,7 +125,7 @@ zfcp_sysfs_unit_remove_store(struct device *dev, const char *buf, size_t count)
        struct zfcp_unit *unit;
        fcp_lun_t fcp_lun;
        char *endp;
-       int retval = 0;
+       int retval = -EINVAL;
 
        down(&zfcp_data.config_sema);
 
@@ -136,10 +136,8 @@ zfcp_sysfs_unit_remove_store(struct device *dev, const char *buf, size_t count)
        }
 
        fcp_lun = simple_strtoull(buf, &endp, 0);
-       if ((endp + 1) < (buf + count)) {
-               retval = -EINVAL;
+       if ((endp + 1) < (buf + count))
                goto out;
-       }
 
        write_lock_irq(&zfcp_data.config_lock);
        unit = zfcp_get_unit_by_lun(port, fcp_lun);