LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/2] staging: gdm724x: Remove initialisation
@ 2019-05-24  6:00 Nishka Dasgupta
  2019-05-24  6:00 ` [PATCH 2/2] staging: gdm724x: Remove variable Nishka Dasgupta
  2019-05-24  6:54 ` [PATCH 1/2] staging: gdm724x: Remove initialisation Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: Nishka Dasgupta @ 2019-05-24  6:00 UTC (permalink / raw)
  To: gregkh, colin.king, devel, linux-kernel; +Cc: Nishka Dasgupta

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-25 13:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24  6:00 [PATCH 1/2] staging: gdm724x: Remove initialisation Nishka Dasgupta
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

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).