diff options
author | Salah Triki <salah.triki@acm.org> | 2015-03-05 03:50:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-06 16:12:22 -0800 |
commit | 5f9dca1e7d5a5463f9e9cc4e1f5c8e9bc9d118a9 (patch) | |
tree | 2645f4956ed50242b32bcad2376aec490b9a161d /drivers/staging/ozwpan/ozpd.c | |
parent | 834d86735d2b12c74d252addf20fc448bae8f813 (diff) | |
download | op-kernel-dev-5f9dca1e7d5a5463f9e9cc4e1f5c8e9bc9d118a9.zip op-kernel-dev-5f9dca1e7d5a5463f9e9cc4e1f5c8e9bc9d118a9.tar.gz |
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>
Diffstat (limited to 'drivers/staging/ozwpan/ozpd.c')
0 files changed, 0 insertions, 0 deletions