From: Daeseok Youn Date: Fri, 16 May 2014 09:29:44 +0000 (+0900) Subject: staging: ozwpan: remove redundant NULL check for devs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=01c48ad3ea7f976ab9e02dca642c52f7cf1256b9;p=openwrt%2Fstaging%2Fblogic.git 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: Daeseok Youn Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index f09acd0bb013..767cac493074 100644 --- a/drivers/staging/ozwpan/ozproto.c +++ b/drivers/staging/ozwpan/ozproto.c @@ -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];