drivers/misc/sgi-gru: add return on error
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 3 Sep 2015 14:50:47 +0000 (20:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 02:27:58 +0000 (19:27 -0700)
commita010d2761705d38e8720d7ab56ba1f7a9e1246d9
tree09df43f5edeeba46228700857650b00ddd77f9ad
parentbf84b1406c206374133e85e15bab266e10e1a837
drivers/misc/sgi-gru: add return on error

If the buffer is too small then return the error and in the process
remove the variables which became unused.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Dimitri Sivanich <sivanich@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sgi-gru/grukdump.c