DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Jan Mędala" <jan@semihalf.com>
To: Yong Wang <wang.yong19@zte.com.cn>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH 2/2] net/ena: fix return of hash control flushing
Date: Tue, 14 Mar 2017 18:59:04 +0100	[thread overview]
Message-ID: <CANw_3ZfMdRNcj9h9uNnQ+6duPpEnt=hPWzP6=9FYjV6NBvcHVg@mail.gmail.com> (raw)
In-Reply-To: <1487075863-3056-2-git-send-email-wang.yong19@zte.com.cn>

Acked-by: Jan Medala <jan@semihalf.com>

  Jan

2017-02-14 13:37 GMT+01:00 Yong Wang <wang.yong19@zte.com.cn>:

> In function ena_com_set_hash_ctrl(), the return value is assigned to
> "ret" variable, but it is not returned. Fix it by adding the return.
>
> Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
> ---
>  drivers/net/ena/base/ena_com.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_
> com.c
> index 39356d2..38a0587 100644
> --- a/drivers/net/ena/base/ena_com.c
> +++ b/drivers/net/ena/base/ena_com.c
> @@ -2278,7 +2278,7 @@ int ena_com_set_hash_ctrl(struct ena_com_dev
> *ena_dev)
>                                             sizeof(resp));
>         if (unlikely(ret)) {
>                 ena_trc_err("Failed to set hash input. error: %d\n", ret);
> -               ret = ENA_COM_INVAL;
> +               return ENA_COM_INVAL;
>         }
>
>         return 0;
> --
> 1.8.3.1
>
>
>

  reply	other threads:[~2017-03-14 17:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-14 12:37 [dpdk-dev] [PATCH 1/2] net/ena: remove redundant variable Yong Wang
2017-02-14 12:37 ` [dpdk-dev] [PATCH 2/2] net/ena: fix return of hash control flushing Yong Wang
2017-03-14 17:59   ` Jan Mędala [this message]
2017-03-14 18:11     ` Ferruh Yigit
2017-03-14 17:59 ` [dpdk-dev] [PATCH 1/2] net/ena: remove redundant variable Jan Mędala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANw_3ZfMdRNcj9h9uNnQ+6duPpEnt=hPWzP6=9FYjV6NBvcHVg@mail.gmail.com' \
    --to=jan@semihalf.com \
    --cc=dev@dpdk.org \
    --cc=wang.yong19@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).