[U-Boot] [PATCH 2/2] bfin: Fix warning in bfin_mac

Marek Vasut
2012-09-12T09:51:57Z

Dear Marek Vasut,

> The buf variable in bfin_mac.c is not used and produces warning,
> fix it.
>
> bfin_mac.c: In function 'bfin_EMAC_send':
> bfin_mac.c:125:16: warning: variable 'buf' set but not used
> [-Wunused-but-set-variable]
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Mike Frysinger <vapier@gentoo.org>

Guess I should have Cced Joe too ...

> ---
> drivers/net/bfin_mac.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
> index c63398e..0ffd59d 100644
> --- a/drivers/net/bfin_mac.c
> +++ b/drivers/net/bfin_mac.c
> @@ -122,8 +122,6 @@ static int bfin_EMAC_send(struct eth_device *dev, void
> *packet, int length) {
> int i;
> int result = 0;
> - unsigned int *buf;
> - buf = (unsigned int *)packet;
>
> if (length <= 0) {
> printf("Ethernet: bad packet size: %d\n", length);

Best regards,
Marek Vasut