cxgb4vf: Behave properly when CONFIG_DEBUG_FS isn't defined ...
authorCasey Leedom <leedom@chelsio.com>
Mon, 14 Feb 2011 12:56:23 +0000 (12:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Feb 2011 01:37:10 +0000 (17:37 -0800)
commit843635e0349be9e318be224d6241069a40e23320
tree2e90bffcf79352627f13af089e5b9d7bd1f3faa0
parentbb14a1af86d01f66dc9620725ac00a240331afec
cxgb4vf: Behave properly when CONFIG_DEBUG_FS isn't defined ...

When CONFIG_DEBUG_FS we get "ERR_PTR()"s back from the debugfs routines
instead of NULL.  Use the right predicates to check for this.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4vf/cxgb4vf_main.c