Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfd51935 authored by Dasaratharaman Chandramouli's avatar Dasaratharaman Chandramouli Committed by Doug Ledford
Browse files

IB/IPoIB: Remove 'else' when the 'if' has a return.



This patch fixes a checkpatch issue related to not having
to use an 'else' if the 'if' path returns from the function.

Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarDon Hiatt <don.hiatt@intel.com>
Reviewed-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent bef4211a
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
				-PTR_ERR(ah));
			/* use original error */
			return PTR_ERR(ah);
		} else {
		}
		spin_lock_irq(&priv->lock);
		mcast->ah = ah;
		spin_unlock_irq(&priv->lock);
@@ -306,7 +306,6 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
				be16_to_cpu(mcast->mcmember.mlid),
				mcast->mcmember.sl);
	}
	}

	/* actually send any queued packets */
	netif_tx_lock_bh(dev);