OSDN Git Service

ethtool: ethnl_set_linkmodes: remove redundant null check
authorGaurav Singh <gaurav1086@gmail.com>
Fri, 31 Jul 2020 04:58:44 +0000 (00:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:11:49 +0000 (15:11 -0700)
commit71fed0bc8665969f4681fc5772e5df42bfcc472e
treed2bd7c9b00cc75a214c4911ff791abc2ef385b72
parent9aba6c5b49254d5bee927d81593ed4429e91d4ae
ethtool: ethnl_set_linkmodes: remove redundant null check

info cannot be NULL here since its being accessed earlier
in the function: nlmsg_parse(info->nlhdr...). Remove this
redundant NULL check.

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/linkmodes.c