Skip to content
Commit 5f9dca1e authored by Salah Triki's avatar Salah Triki Committed by Greg Kroah-Hartman
Browse files

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: default avatarSalah Triki <salah.triki@acm.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 834d8673
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment