staging: ozwpan: remove redundant NULL check for devs
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 16 May 2014 09:29:44 +0000 (18:29 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:10:50 +0000 (21:10 +0900)
The "devs" is a pointer to g_net_dev in ozmain.c.
g_net_dev has a default value as empty string.
So "devs" cannot be NULL, removes NULL check for "devs".

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozproto.c

index f09acd0bb01318d9307dd09442e7beffa5d106f9..767cac4930740556df0808a2b46d743e38719530 100644 (file)
@@ -765,7 +765,7 @@ static char *oz_get_next_device_name(char *s, char *dname, int max_size)
 int oz_protocol_init(char *devs)
 {
        skb_queue_head_init(&g_rx_queue);
-       if (devs && (devs[0] == '*')) {
+       if (devs[0] == '*') {
                oz_binding_add(NULL);
        } else {
                char d[32];