From: Len Baker <len.baker@gmx.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Len Baker <len.baker@gmx.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Phil Reid <preid@electromag.com.au>, Geert Uytterhoeven <geert@linux-m68k.org>, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] staging/fbtft: Remove unnecessary variable initialization Date: Sat, 24 Jul 2021 17:14:10 +0200 [thread overview] Message-ID: <20210724151411.9531-3-len.baker@gmx.com> (raw) In-Reply-To: <20210724151411.9531-1-len.baker@gmx.com> Remove the initialization of the variable "i" since it is written a few lines later. Signed-off-by: Len Baker <len.baker@gmx.com> --- drivers/staging/fbtft/fbtft-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index be20da3c4a5c..cc2bee22f7ad 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -992,7 +992,7 @@ static int fbtft_init_display_from_property(struct fbtft_par *par) int fbtft_init_display(struct fbtft_par *par) { int buf[64]; - int i = 0; + int i; int j; /* sanity check */ -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Len Baker <len.baker@gmx.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-fbdev@vger.kernel.org, Phil Reid <preid@electromag.com.au>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Geert Uytterhoeven <geert@linux-m68k.org>, Len Baker <len.baker@gmx.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [PATCH v2 2/3] staging/fbtft: Remove unnecessary variable initialization Date: Sat, 24 Jul 2021 17:14:10 +0200 [thread overview] Message-ID: <20210724151411.9531-3-len.baker@gmx.com> (raw) In-Reply-To: <20210724151411.9531-1-len.baker@gmx.com> Remove the initialization of the variable "i" since it is written a few lines later. Signed-off-by: Len Baker <len.baker@gmx.com> --- drivers/staging/fbtft/fbtft-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index be20da3c4a5c..cc2bee22f7ad 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -992,7 +992,7 @@ static int fbtft_init_display_from_property(struct fbtft_par *par) int fbtft_init_display(struct fbtft_par *par) { int buf[64]; - int i = 0; + int i; int j; /* sanity check */ -- 2.25.1
next prev parent reply other threads:[~2021-07-24 16:54 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-24 15:14 [PATCH v2 0/3] Remove all strcpy() uses Len Baker 2021-07-24 15:14 ` Len Baker 2021-07-24 15:14 ` [PATCH v2 1/3] staging/fbtft: " Len Baker 2021-07-24 15:14 ` Len Baker 2021-07-24 20:21 ` Andy Shevchenko 2021-07-24 20:21 ` Andy Shevchenko 2021-07-24 20:21 ` Andy Shevchenko 2021-07-25 13:58 ` Len Baker 2021-07-25 13:58 ` Len Baker 2021-07-25 18:51 ` Andy Shevchenko 2021-07-25 18:51 ` Andy Shevchenko 2021-07-25 18:51 ` Andy Shevchenko 2021-07-31 13:43 ` Len Baker 2021-07-24 15:14 ` Len Baker [this message] 2021-07-24 15:14 ` [PATCH v2 2/3] staging/fbtft: Remove unnecessary variable initialization Len Baker 2021-07-24 15:14 ` [PATCH v2 3/3] staging/fbtft: Fix braces coding style Len Baker 2021-07-24 15:14 ` Len Baker 2021-07-24 18:01 ` Geert Uytterhoeven 2021-07-24 18:01 ` Geert Uytterhoeven 2021-07-24 18:01 ` Geert Uytterhoeven 2021-07-25 14:02 ` Len Baker 2021-07-25 14:02 ` Len Baker
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=20210724151411.9531-3-len.baker@gmx.com \ --to=len.baker@gmx.com \ --cc=andriy.shevchenko@linux.intel.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=geert@linux-m68k.org \ --cc=gregkh@linuxfoundation.org \ --cc=linux-fbdev@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-staging@lists.linux.dev \ --cc=preid@electromag.com.au \ /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 an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.