From: Dan Carpenter Date: Mon, 24 May 2010 06:29:34 +0000 (+0000) Subject: caif: cleanup: remove duplicate checks X-Git-Tag: v2.6.36-rc1~571^2~731 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bfca3c6e5965a01b7c6d8e2f2ea30799c9d43bc;p=pandora-kernel.git caif: cleanup: remove duplicate checks "phyinfo" can never be null here because we assigned it an address, so I removed both the assert and the second check inside the if statement. I removed the "phyinfo->phy_layer != NULL" check as well because that was asserted earlier. Walter Harms suggested I move the "phyinfo->phy_ref_count++;" outside the if condition for readability, so I have done that. Signed-off-by: Dan Carpenter Acked-by: Sjur Braendeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed