Skip to content

Commit

Permalink
net: phy: sfp: remove sfp_mutex's definition
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Sebastian Andrzej Siewior authored and davem330 committed Oct 11, 2018
1 parent 511cfd5 commit 0528586
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/phy/sfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0528586

Please sign in to comment.