linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] swim3: remove some dead code
@ 2016-11-24 11:34 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2016-11-24 11:34 UTC (permalink / raw)
  To: linux-block, Jens Axboe; +Cc: kernel-janitors, Benjamin Herrenschmidt

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index c264f2d..59b4a41 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-24 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 11:34 [patch] swim3: remove some dead code Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).