From: Greg KH <greg@kroah.com>
To: Adam Kandur <sys.arch.adam@gmail.com>
Cc: linux-staging@lists.linux.dev
Subject: Re: [PATCH] qlge: replace goto
Date: Mon, 27 Dec 2021 10:22:32 +0100 [thread overview]
Message-ID: <YcmF2KRF2exkfeHQ@kroah.com> (raw)
In-Reply-To: <CAE28pkPuP-H2A9Q2m3Eu8aOKQQj9uaVBFYX9XNQXu+Dnz38j9Q@mail.gmail.com>
On Mon, Dec 27, 2021 at 10:55:42AM +0300, Adam Kandur wrote:
> I think this goto can be easily replaced. Hope, this is right.
>
> ---
> drivers/staging/qlge/qlge_mpi.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/qlge/qlge_mpi.c b/drivers/staging/qlge/qlge_mpi.c
> index 96a4de6d2b34..b739dd051c87 100644
> --- a/drivers/staging/qlge/qlge_mpi.c
> +++ b/drivers/staging/qlge/qlge_mpi.c
> @@ -1122,7 +1122,8 @@ void qlge_mpi_port_cfg_work(struct work_struct *work)
> if (status) {
> netif_err(qdev, drv, qdev->ndev,
> "Bug: Failed to get port config data.\n");
> - goto err;
> + clear_bit(QL_PORT_CFG, &qdev->flags);
> + return;
> }
>
> if (qdev->link_config & CFG_JUMBO_FRAME_SIZE &&
> @@ -1135,14 +1136,9 @@ void qlge_mpi_port_cfg_work(struct work_struct *work)
> if (status) {
> netif_err(qdev, drv, qdev->ndev,
> "Bug: Failed to set port config data.\n");
> - goto err;
> + qlge_queue_fw_error(qdev);
> + goto end;
> }
> -end:
> - clear_bit(QL_PORT_CFG, &qdev->flags);
> - return;
> -err:
> - qlge_queue_fw_error(qdev);
> - goto end;
> }
>
> /* Process an inter-device request. This is issues by
> --
> 2.34.0
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- Your patch does not have a Signed-off-by: line. Please read the
kernel file, Documentation/SubmittingPatches and resend it after
adding that line. Note, the line needs to be in the body of the
email, before the patch, not at the bottom of the patch or in the
email signature.
- You did not specify a description of why the patch is needed, or
possibly, any description at all, in the email body. Please read the
section entitled "The canonical patch format" in the kernel file,
Documentation/SubmittingPatches for what is needed in order to
properly describe the change.
- You did not write a descriptive Subject: for the patch, allowing Greg,
and everyone else, to know what this patch is all about. Please read
the section entitled "The canonical patch format" in the kernel file,
Documentation/SubmittingPatches for what a proper Subject: line should
look like.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
prev parent reply other threads:[~2021-12-27 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 7:55 [PATCH] qlge: replace goto Adam Kandur
2021-12-27 9:22 ` Greg KH [this message]
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=YcmF2KRF2exkfeHQ@kroah.com \
--to=greg@kroah.com \
--cc=linux-staging@lists.linux.dev \
--cc=sys.arch.adam@gmail.com \
/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).