[PATCH 1/5] mcs7780.c: don't use unmodified return variable name

From: Peter Teoh
Date: Mon Mar 16 2015 - 11:53:07 EST


Discovered by Coccinelle. Removed the use of variable for storing
returning values, which is un-modified / un-used throughout.

Signed-off-by: Peter Teoh <htmldeveloper@xxxxxxxxx>

diff -u -p a/drivers/net/irda/mcs7780.c b/drivers/net/irda/mcs7780.c
--- a/drivers/net/irda/mcs7780.c
+++ b/drivers/net/irda/mcs7780.c
@@ -669,7 +669,6 @@ static int mcs_net_ioctl(struct net_devi
/* Network device is taken down, done by "ifconfig irda0 down" */
static int mcs_net_close(struct net_device *netdev)
{
- int ret = 0;
struct mcs_cb *mcs = netdev_priv(netdev);

/* Stop transmit processing */
@@ -688,7 +687,7 @@ static int mcs_net_close(struct net_devi
irlap_close(mcs->irlap);

mcs->irlap = NULL;
- return ret;
+ return 0;
}

/* Network device is taken up, done by "ifconfig irda0 up" */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/