staging: most: fix error comparison
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sun, 22 Nov 2015 17:00:54 +0000 (22:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commit17ac98ac7339bdf867633d788e1bde32349012f2
tree8c7d507f974f56eea0ce86e5abb0bac21896cd23
parent0833ac7db0034b64669ea3fc3dc36d7c9e7905b8
staging: most: fix error comparison

device_create() returns ERR_PTR on error, it does not return NULL.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c