kernel_optimize_test/net/caif
Dan Carpenter 9bfca3c6e5 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>
2010-05-31 00:24:16 -07:00
..
caif_config_util.c net-caif: add CAIF device registration functionality 2010-03-30 19:08:47 -07:00
caif_dev.c net: Remove unnecessary returns from void function()s 2010-05-17 23:23:14 -07:00
caif_socket.c caif: remove unneeded null check in caif_connect() 2010-05-31 00:24:16 -07:00
cfcnfg.c caif: cleanup: remove duplicate checks 2010-05-31 00:24:16 -07:00
cfctrl.c caif: Bugfix - use standard Linux lists 2010-05-23 23:57:41 -07:00
cfdbgl.c
cfdgml.c
cffrml.c
cfmuxl.c caif: Bugfix - missing spin_unlock 2010-05-23 23:57:43 -07:00
cfpkt_skbuff.c caif: Bugfix - handle mem-allocation failures 2010-05-23 23:57:42 -07:00
cfrfml.c
cfserl.c caif: unlock on error path in cfserl_receive() 2010-05-29 00:18:50 -07:00
cfsrvl.c caif: Bugfix - handle mem-allocation failures 2010-05-23 23:57:42 -07:00
cfutill.c
cfveil.c
cfvidl.c
chnl_net.c caif: Bugfixes in CAIF netdevice for close and flow control 2010-04-28 12:55:14 -07:00
Kconfig net-caif: drop redundant Kconfig entries 2010-05-23 23:11:08 -07:00
Makefile net-caif: add CAIF Kconfig and Makefiles 2010-03-30 19:08:49 -07:00