projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbbb249
)
staging: et131x: Remove unecessary *etdev NULL check in et1310_phy_init()
author
Mark Einon
<mark.einon@gmail.com>
Tue, 23 Aug 2011 22:40:33 +0000
(23:40 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 23 Aug 2011 23:25:27 +0000
(16:25 -0700)
It is impossible to get to this function with the pointer being NULL.
Tested on an ET-131x device.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et1310_phy.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/et131x/et1310_phy.c
b/drivers/staging/et131x/et1310_phy.c
index 2385d04e74875ba39cab77205a3ce06ce164d326..36534260fae1d4f2c377203b363190f4f5e1e5fa 100644
(file)
--- a/
drivers/staging/et131x/et1310_phy.c
+++ b/
drivers/staging/et131x/et1310_phy.c
@@
-908,9
+908,6
@@
void et1310_phy_init(struct et131x_adapter *etdev)
{
u16 data, index;
- if (etdev == NULL)
- return;
-
/* get the identity (again ?) */
et131x_mii_read(etdev, PHY_ID_1, &data);
et131x_mii_read(etdev, PHY_ID_2, &data);
This page took
0.025379 seconds
and
5
git commands to generate.