]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit642336cdff7e5ec9b037411b51b249a234f326e1
tree2e90bffcf79352627f13af089e5b9d7bd1f3faa0
parent5e7b1731d5a7ad198b3fb7162c8762563f8c4339
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