From: Kevin McKinney Date: Fri, 19 Oct 2012 02:40:14 +0000 (-0400) Subject: Staging: bcm: Clean up function CopyBufferToControlPacket in Misc.c X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=895b1fb81c9e71cac0f8787359035d177c12b5b6;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed