]> git.baikalelectronics.ru Git - kernel.git/commit
lance: Return correct error code
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 17 Feb 2016 15:03:26 +0000 (20:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 19:58:47 +0000 (14:58 -0500)
commitb01b8bc8e57e2d58114eb387d4ce01d5b1bcaddd
tree9233aa47dcf8d8b512eab13565bd0ce711600446
parent97f5f6b202512e0a7055e83a038cf33e7ac65804
lance: Return correct error code

Failure of kzalloc should cause the enclosing function
to return -ENOMEM, not -ENODEV.

Additionally, removed the following checkpatch warnings:
ERROR: spaces required around that '==' (ctx:VxV)
ERROR: space required before the open parenthesis '('
CHECK: Comparison to NULL could be written "!lp"

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/lance.c