[PATCH v2] staging/rtl8723bs: remove unused variable warning

Meeri Kallio posted 1 patch 2 weeks, 6 days ago
drivers/staging/rtl8723bs/foo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] staging/rtl8723bs: remove unused variable warning
Posted by Meeri Kallio 2 weeks, 6 days ago
This is a resend of my first kernel patch, now CC'd to the staging maintainer.

The patch removes an unused variable in rtl8723bs to silence a compiler warning.
No functional changes.

Feedback welcome.

Signed-off-by: Meeri Kallio <meeri.kallio91@gmail.com>

---
drivers/staging/rtl8723bs/foo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/foo.c b/drivers/staging/rtl8723bs/foo.c
index abcdef0..1234567 100644
--- a/drivers/staging/rtl8723bs/foo.c
+++ b/drivers/staging/rtl8723bs/foo.c
@@ -1,3 +1,3 @@
-int unused_variable = 0;
+/* removed unused_variable to silence warning */
 int rtl8723bs_init(void)
 {
     return 0;
 }
Re: [PATCH v2] staging/rtl8723bs: remove unused variable warning
Posted by Dan Carpenter 2 weeks, 6 days ago
What tree are you working off?  It looks like you're accidentally
working off an example tree with deliberate nonsense code.  You're
just supposed to fix the bugs privately as practice about how to do
a git commit, not send the fix upstream.

In time you will look back at this with amusement.  It certainly gave
me a good chuckle.

regards,
dan carpenter