Staging: dgnc: Fix checking return value of register_chrdev
authorSalah Triki <salah.triki@acm.org>
Thu, 5 Mar 2015 02:50:24 +0000 (03:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:12:22 +0000 (16:12 -0800)
commit5f9dca1e7d5a5463f9e9cc4e1f5c8e9bc9d118a9
tree2645f4956ed50242b32bcad2376aec490b9a161d
parent834d86735d2b12c74d252addf20fc448bae8f813
Staging: dgnc: Fix checking return value of register_chrdev

The failure code is negative. So check <0 instead of <=0.
Return the failure code instead of -ENXIO.

Signed-off-by: Salah Triki <salah.triki@acm.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c