Staging: bcm: Return -ENOMEM instead of -1 when memory not acquired in nmv.c
authorKevin McKinney <klmckinney1@gmail.com>
Fri, 8 Jun 2012 03:52:42 +0000 (23:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 17:50:52 +0000 (10:50 -0700)
commit7dd80eb925a5aac4ebe8b1abec20802e91f60c2e
treea9805683859f364a3c71fb57d27c5ca3b0aa6020
parent6788d7dab6a5b126604ae0f40cfb13400fdf37f6
Staging: bcm: Return -ENOMEM instead of -1 when memory not acquired in nmv.c

This patch changes the return statement on two
conditions where memory could not be acquired.
It returns -ENOMEM instead of -1.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/nvm.c