staging: vt6655: return ENOMEM rather than ENODEV when alloc_etherdev fail
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 6 Sep 2012 18:38:05 +0000 (00:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Sep 2012 05:07:37 +0000 (22:07 -0700)
commitcfd1fc1f5f1f3a588c6d326738dcb6b9f7b820fa
tree8c866d1bd8b947fe6d2e57b26f80f96e3a648241
parent502eb5369f51539aaee6ec173165be28d916a3ca
staging: vt6655: return ENOMEM rather than ENODEV when alloc_etherdev fail

when alloc_etherdev fails we should be returning ENOMEM, not ENODEV

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c