oradax: Fix return value check in dax_attach()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 27 Jan 2018 08:10:59 +0000 (08:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 19:28:48 +0000 (14:28 -0500)
commit2d85ec8acb01601a216b6c591cab63bfaacd2083
tree0027a9a6a6b5016a3d95a85e566ea1859aac824c
parentb3ca676f681409301332a75049e3148b7cb86141
oradax: Fix return value check in dax_attach()

In case of error, the function class_create() returns ERR_PTR() and
never returns NULL. The NULL test in the return value check should be
replaced with IS_ERR().

Fixes: dd0273284c74 ("sparc64: Oracle DAX driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/oradax.c