Skip to contentSkip to conversation

swim3: remove some dead code

PATCH New Dan Carpenter 1 participant 1 message Nov 24, 2016

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

PATCH 1/1 swim3: remove some dead code

The goto is correct. "rc" is already set to -EBUSY so there is no need to do anything with that.

drivers/block/swim3.c +0 -1
index c264f2d..59b4a41 100644
@@ -1179,7 +1179,6 @@ static int swim3_add_device(struct macio_dev *mdev, int index)
 		swim3_err("%s", "Couldn't request interrupt\n");
 		pmac_call_feature(PMAC_FTR_SWIM3_ENABLE, swim, 0, 0);
 		goto out_unmap;
-		return -EBUSY;
 	}
 
 	init_timer(&fs->timeout);