All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] net: bcmgenet: Return the variable ret rather then zero for the function bcmgenet_power_down
       [not found] <1437075530-21552-1-git-send-email-xerofoify@gmail.com>
@ 2015-07-17 17:55 ` Florian Fainelli
  0 siblings, 0 replies; only message in thread
From: Florian Fainelli @ 2015-07-17 17:55 UTC (permalink / raw)
  To: Nicholas Krause; +Cc: netdev, linux-kernel

On 16/07/15 12:38, Nicholas Krause wrote:
> This makes the function bcmgenet_power_down return the variable ret
> rather then zero in order to make this function be able to signal its
> caller with a error code when a failure occurs internally rather then
> always appearing to run successfully to its caller.
> 
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>

> ---
>  drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> index 64c1e9d..129e5b5 100644
> --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> @@ -877,7 +877,7 @@ static int bcmgenet_power_down(struct bcmgenet_priv *priv,
>  		break;
>  	}
>  
> -	return 0;
> +	return ret;
>  }
>  
>  static void bcmgenet_power_up(struct bcmgenet_priv *priv,
> 


-- 
Florian

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-17 17:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1437075530-21552-1-git-send-email-xerofoify@gmail.com>
2015-07-17 17:55 ` [PATCH] net: bcmgenet: Return the variable ret rather then zero for the function bcmgenet_power_down Florian Fainelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.