Commit 01c48ad3 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

staging: ozwpan: remove redundant NULL check for devs

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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c9f38a1
...@@ -765,7 +765,7 @@ static char *oz_get_next_device_name(char *s, char *dname, int max_size) ...@@ -765,7 +765,7 @@ static char *oz_get_next_device_name(char *s, char *dname, int max_size)
int oz_protocol_init(char *devs) int oz_protocol_init(char *devs)
{ {
skb_queue_head_init(&g_rx_queue); skb_queue_head_init(&g_rx_queue);
if (devs && (devs[0] == '*')) { if (devs[0] == '*') {
oz_binding_add(NULL); oz_binding_add(NULL);
} else { } else {
char d[32]; char d[32];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment