]> Git Repo - linux.git/commit
yam: remove redundant null check on dev
authorColin Ian King <[email protected]>
Wed, 27 Mar 2013 18:25:04 +0000 (18:25 +0000)
committerDavid S. Miller <[email protected]>
Wed, 27 Mar 2013 18:30:55 +0000 (14:30 -0400)
commit429a22ca39e531d9f8bacac1f81f7207909bcbd2
tree32193c308f165af8f7b4c1496110c70233ad146e
parente2a553dbf18a5177fdebe29495c32a8e7fd3a4db
yam: remove redundant null check on dev

yam_open has a redundant null check on null,  it will
never be called with dev == NULL. Remove this redundant check.
This also cleans up a smatch warning:

drivers/net/hamradio/yam.c:869 yam_open() warn: variable
  dereferenced before check 'dev' (see line 867)

Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Ben Hutchings <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/hamradio/yam.c
This page took 0.054905 seconds and 4 git commands to generate.