[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9e989150-021c-4b8a-850a-40f222c1c50c@intel.com>
Date: Wed, 22 Nov 2023 11:04:06 +0100
From: Wojciech Drewek <wojciech.drewek@...el.com>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>, <s.shtylyov@....ru>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>
CC: <netdev@...r.kernel.org>, <linux-renesas-soc@...r.kernel.org>
Subject: Re: [PATCH net v3 1/3] net: rswitch: Fix type of ret in
rswitch_start_xmit()
On 22.11.2023 06:11, Yoshihiro Shimoda wrote:
> The type of ret in rswitch_start_xmit() should be netdev_tx_t. So,
> fix it.
>
> Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
> ---
Hi,
Thanks for your patches!
Reviewed-by: Wojciech Drewek <wojciech.drewek@...el.com>
> drivers/net/ethernet/renesas/rswitch.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c
> index 43a7795d6591..d53d90020904 100644
> --- a/drivers/net/ethernet/renesas/rswitch.c
> +++ b/drivers/net/ethernet/renesas/rswitch.c
> @@ -1504,8 +1504,8 @@ static netdev_tx_t rswitch_start_xmit(struct sk_buff *skb, struct net_device *nd
> {
> struct rswitch_device *rdev = netdev_priv(ndev);
> struct rswitch_gwca_queue *gq = rdev->tx_queue;
> + netdev_tx_t ret = NETDEV_TX_OK;
> struct rswitch_ext_desc *desc;
> - int ret = NETDEV_TX_OK;
> dma_addr_t dma_addr;
>
> if (rswitch_get_num_cur_queues(gq) >= gq->ring_size - 1) {
Powered by blists - more mailing lists