diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2008-07-02 10:56:37 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 08:22:35 -0500 |
commit | 317e6b6519b5a34263a33f150ed57ad468b26a64 (patch) | |
tree | 074a35c260d567911b009fd70b83940cdd254bbd /drivers/s390/scsi/zfcp_sysfs_port.c | |
parent | f76af7d7e36373179be7a9e09f6b0aae330549b7 (diff) | |
download | lwn-317e6b6519b5a34263a33f150ed57ad468b26a64.tar.gz lwn-317e6b6519b5a34263a33f150ed57ad468b26a64.zip |
[SCSI] zfcp: Cleanup of code in zfcp_aux.c
Overall cleanup of zfcp_aux.c to simplify code and follow kernel
coding style.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_sysfs_port.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_sysfs_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_sysfs_port.c b/drivers/s390/scsi/zfcp_sysfs_port.c index 438675f2978e..e183ff8bdb2a 100644 --- a/drivers/s390/scsi/zfcp_sysfs_port.c +++ b/drivers/s390/scsi/zfcp_sysfs_port.c @@ -74,7 +74,7 @@ zfcp_sysfs_unit_add_store(struct device *dev, struct device_attribute *attr, con goto out; unit = zfcp_unit_enqueue(port, fcp_lun); - if (!unit) + if (IS_ERR(unit)) goto out; retval = 0; |