[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F362F4B.4060903@brownhat.org>
Date: Sat, 11 Feb 2012 10:05:15 +0100
From: Daniele Venzano <venza@...wnhat.org>
To: Danny Kukawka <danny.kukawka@...ect.de>
CC: Danny Kukawka <dkukawka@...e.de>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 24/50] sis900: use dev_hw_addr_random() instead of random_ether_addr()
Il 08.02.2012 22:10, Danny Kukawka ha scritto:
> Use dev_hw_addr_random() instead of calling random_ether_addr()
> to set addr_assign_type correctly to NET_ADDR_RANDOM.
Acked-by: Daniele Venzano <venza@...wnhat.org>
> Signed-off-by: Danny Kukawka <danny.kukawka@...ect.de>
> ---
> drivers/net/ethernet/sis/sis900.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/sis/sis900.c b/drivers/net/ethernet/sis/sis900.c
> index c8efc70..cbd0343 100644
> --- a/drivers/net/ethernet/sis/sis900.c
> +++ b/drivers/net/ethernet/sis/sis900.c
> @@ -527,7 +527,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev,
> ret = sis900_get_mac_addr(pci_dev, net_dev);
>
> if (!ret || !is_valid_ether_addr(net_dev->dev_addr)) {
> - random_ether_addr(net_dev->dev_addr);
> + dev_hw_addr_random(net_dev, net_dev->dev_addr);
> printk(KERN_WARNING "%s: Unreadable or invalid MAC address,"
> "using random generated one\n", dev_name);
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists