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

Signed-off-by: Peter Teoh <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to