]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd720f5664a13695df47621bacb7eba451205bfe8
treed2bd7c9b00cc75a214c4911ff791abc2ef385b72
parent3a802935c8a343fb7b45971b194bafa5e3061ddd
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