e1000e: static analysis tools complain of a possible null ptr p dereference
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 9 Dec 2010 23:04:25 +0000 (23:04 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 11 Dec 2010 06:13:49 +0000 (22:13 -0800)
commit61c758166701c4f156c0aba10260f5729b1a6f43
tree73ae69878b55a8f493b7d037a7edde819f9a2251
parente9262447233037e9336d5866628821156a17366f
e1000e: static analysis tools complain of a possible null ptr p dereference

Adding this default case resolves the issue.

v2- Removed "break" in default case based on feedback

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/e1000e/ethtool.c