Skip to contentSkip to conversation

PATCH 5/10] zfcp: Remove unnecessary assignment

PATCH Swen Schillig 1 participant 1 message Aug 28, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: Christof Schmitt <[email protected]>

zfcp_adapter_enqueue initialized adapter->ccw_device twice with the same value. Remove the second assignment, since it is not necessary.

---

 drivers/s390/scsi/zfcp_aux.c |    1 -
 1 file changed, 1 deletion(-)
drivers/s390/scsi/zfcp_aux.c +0 -1
diff -urpN linux-2.6/drivers/s390/scsi/zfcp_aux.c linux-2.6-patched/drivers/s390/scsi/zfcp_aux.c
@@ -1058,7 +1058,6 @@ zfcp_adapter_enqueue(struct ccw_device *
 	/* mark adapter unusable as long as sysfs registration is not complete */
 	atomic_set_mask(ZFCP_STATUS_COMMON_REMOVE, &adapter->status);
 
-	adapter->ccw_device = ccw_device;
 	dev_set_drvdata(&ccw_device->dev, adapter);
 
 	if (zfcp_sysfs_adapter_create_files(&ccw_device->dev))