summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-24 10:29:34 +0400
committerDavid S. Miller <davem@davemloft.net>2010-05-31 11:24:16 +0400
commit9bfca3c6e5965a01b7c6d8e2f2ea30799c9d43bc (patch)
treefff58796c91f08e987132b4e12c128c2b03fbe3a /Documentation
parentf5d72af9f3dfea67f014f880d00665f96622f57f (diff)
downloadlinux-9bfca3c6e5965a01b7c6d8e2f2ea30799c9d43bc.tar.xz
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 <error27@gmail.com> Acked-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions