projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
511cfd5
)
net: phy: sfp: remove sfp_mutex's definition
author
Sebastian Andrzej Siewior
<
[email protected]
>
Thu, 11 Oct 2018 15:06:21 +0000
(17:06 +0200)
committer
David S. Miller
<
[email protected]
>
Thu, 11 Oct 2018 19:10:06 +0000
(12:10 -0700)
The sfp_mutex variable is defined but never used in this file. Not even
in the commit that introduced that variable.
Remove sfp_mutex, it has no purpose.
Cc: Andrew Lunn <
[email protected]
>
Cc: Florian Fainelli <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Signed-off-by: Sebastian Andrzej Siewior <
[email protected]
>
Reviewed-by: Andrew Lunn <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/phy/sfp.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/sfp.c
b/drivers/net/phy/sfp.c
index 6e13b8832bc7df94467211f07c1e7dba15a6e877..fd8bb998ae52d946ca5b29172a4553176addc726 100644
(file)
--- a/
drivers/net/phy/sfp.c
+++ b/
drivers/net/phy/sfp.c
@@
-163,8
+163,6
@@
static const enum gpiod_flags gpio_flags[] = {
/* Give this long for the PHY to reset. */
#define T_PHY_RESET_MS 50
-static DEFINE_MUTEX(sfp_mutex);
-
struct sff_data {
unsigned int gpios;
bool (*module_supported)(const struct sfp_eeprom_id *id);