From: Dan Carpenter Date: Fri, 8 Jul 2011 07:25:40 +0000 (+0300) Subject: Staging: tm6000: remove unneeded check in get_next_buf() X-Git-Tag: v3.1-rc1~232^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98c0a9c9badedd52f558f7657572e094c3d1c6e5;p=pandora-kernel.git Staging: tm6000: remove unneeded check in get_next_buf() We dereference "buf" on the line before so if it were NULL here we would have OOPsed earlier. Also list_entry() never returns NULL. And finally, we handled the situation where the list is empty earlier in the function. So this test isn't needed and I've removed it. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed