From: Dan Carpenter Date: Tue, 18 Feb 2014 12:18:10 +0000 (+0300) Subject: staging: gdm724x: cleanup alloc_tx_sdu_struct() X-Git-Tag: v3.15-rc1~139^2~1007 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75bc5fad154590e8dda5772669cf9b6f44bb873b;p=pandora-kernel.git staging: gdm724x: cleanup alloc_tx_sdu_struct() The kfree(t_sdu->buf) sets off a private static checker warning because "t_sdu->buf" is always NULL. This function just allocates two pointers so we can re-write it to be simpler. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed