Staging: bcm: Clean up function CopyBufferToControlPacket in Misc.c
authorKevin McKinney <klmckinney1@gmail.com>
Fri, 19 Oct 2012 02:40:14 +0000 (22:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Oct 2012 20:43:26 +0000 (13:43 -0700)
commit895b1fb81c9e71cac0f8787359035d177c12b5b6
treec904ee4a67a9f7daee510c58388bf2724a56fec1
parent7af1413446b8e842412932f0b8634f107412b63c
Staging: bcm: Clean up function CopyBufferToControlPacket in Misc.c

This patch cleans up the code in function
CopyBufferToControlPacket. Several things are
being done here: (1) remove the null
initialization from variable cntrl_buff, (2)
reverse the if statement to check if cntrl_buff
is null; if so, then write debug statement and
return -ENOMEM error code, and (3) indent the
code properly.

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