Message ID | 20200523163837.407592-27-marek.vasut+renesas@gmail.com |
---|---|
State | New |
Headers | show |
Series | [01/30] net: eepro100: Remove EEPRO100_SROM_WRITE | expand |
On Sat, May 23, 2020 at 7:44 PM Marek Vasut <marek.vasut at gmail.com> wrote: > > The pointer is unused, so drop it. Rename the function to start > with the eepro100_ prefix. > > Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com> > --- > drivers/net/eepro100.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c > index ed6bbd5cf8..fb8a68f84c 100644 > --- a/drivers/net/eepro100.c > +++ b/drivers/net/eepro100.c > @@ -512,7 +512,7 @@ static struct pci_device_id supported[] = { > { } > }; > > -static void read_hw_addr(struct eepro100_priv *priv, bd_t *bis) > +static void eepro100_get_hwaddr(struct eepro100_priv *priv) > { > u16 sum = 0; > int i, j; > @@ -845,7 +845,7 @@ int eepro100_initialize(bd_t *bis) > > udelay(10 * 1000); > > - read_hw_addr(priv, bis); > + eepro100_get_hwaddr(priv); > } > > return card_number; > -- > 2.25.1 > Reviewed-By: Ramon Fried <rfried.dev at gmail.com>
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index ed6bbd5cf8..fb8a68f84c 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c @@ -512,7 +512,7 @@ static struct pci_device_id supported[] = { { } }; -static void read_hw_addr(struct eepro100_priv *priv, bd_t *bis) +static void eepro100_get_hwaddr(struct eepro100_priv *priv) { u16 sum = 0; int i, j; @@ -845,7 +845,7 @@ int eepro100_initialize(bd_t *bis) udelay(10 * 1000); - read_hw_addr(priv, bis); + eepro100_get_hwaddr(priv); } return card_number;
The pointer is unused, so drop it. Rename the function to start with the eepro100_ prefix. Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com> --- drivers/net/eepro100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)