]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: remove return statement
authorChaehyun Lim <chaehyun.lim@gmail.com>
Wed, 30 Dec 2015 12:15:40 +0000 (21:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:09:44 +0000 (15:09 -0800)
This patch removes return statement that is always returned 0.
wilc_setup_ipaddress can not run to the end due to return statement.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index 0d41657a4624514280101bcb7786825be3db717a..90fdbddaf9cdcf59f8b125dcd24e7355a8cf4c8b 100644 (file)
@@ -4644,8 +4644,6 @@ int wilc_setup_ipaddress(struct wilc_vif *vif, u8 *ip_addr, u8 idx)
        struct host_if_msg msg;
        struct host_if_drv *hif_drv = vif->hif_drv;
 
-       return 0;
-
        if (!hif_drv) {
                PRINT_ER("driver is null\n");
                return -EFAULT;