LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Nishka Dasgupta <nishkadg.linux@gmail.com> To: gregkh@linuxfoundation.org, colin.king@canonical.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Nishka Dasgupta <nishkadg.linux@gmail.com> Subject: [PATCH 1/2] staging: gdm724x: Remove initialisation Date: Fri, 24 May 2019 11:30:25 +0530 [thread overview] Message-ID: <20190524060026.3763-1-nishkadg.linux@gmail.com> (raw) The initial value of return variable ret, -1, is never used and hence can be removed. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> --- drivers/staging/gdm724x/gdm_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_usb.c b/drivers/staging/gdm724x/gdm_usb.c index dc4da66c3695..d023f83f9097 100644 --- a/drivers/staging/gdm724x/gdm_usb.c +++ b/drivers/staging/gdm724x/gdm_usb.c @@ -60,7 +60,7 @@ static int request_mac_address(struct lte_udev *udev) struct hci_packet *hci = (struct hci_packet *)buf; struct usb_device *usbdev = udev->usbdev; int actual; - int ret = -1; + int ret; hci->cmd_evt = gdm_cpu_to_dev16(udev->gdm_ed, LTE_GET_INFORMATION); hci->len = gdm_cpu_to_dev16(udev->gdm_ed, 1); -- 2.19.1
next reply other threads:[~2019-05-24 6:00 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-24 6:00 Nishka Dasgupta [this message] 2019-05-24 6:00 ` [PATCH 2/2] staging: gdm724x: Remove variable Nishka Dasgupta 2019-05-24 6:54 ` Greg KH 2019-05-25 13:28 ` Sven Van Asbroeck 2019-05-24 6:54 ` [PATCH 1/2] staging: gdm724x: Remove initialisation Greg KH
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=20190524060026.3763-1-nishkadg.linux@gmail.com \ --to=nishkadg.linux@gmail.com \ --cc=colin.king@canonical.com \ --cc=devel@driverdev.osuosl.org \ --cc=gregkh@linuxfoundation.org \ --cc=linux-kernel@vger.kernel.org \ /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: linkBe 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).