From: Varsha Rao <rvarsha016@gmail.com>
To: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com,
gregkh@linuxfoundation.org
Cc: outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: [PATCH v4 1/7] staging: sm750fb: Add braces around if statement.
Date: Sun, 26 Feb 2017 21:09:34 +0530 [thread overview]
Message-ID: <58b2f6bb.4a3e630a.a1117.5dfb@mx.google.com> (raw)
In-Reply-To: <cover.1488122987.git.varshar186@gmail.com>
Added braces around if statement. This patch fixes the following
checkpatch issue:
CHECK: braces {} should be used on all arms of this statement
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
---
Changes in v4:
- Added proper version number to patch.
drivers/staging/sm750fb/ddk750_chip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 10cf729..7948ca9 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -16,9 +16,9 @@ logical_chip_type_t sm750_get_chip_type(void)
void sm750_set_chip_type(unsigned short devId, u8 revId)
{
- if (devId == 0x718)
+ if (devId == 0x718) {
chip = SM718;
- else if (devId == 0x750) {
+ } else if (devId == 0x750) {
chip = SM750;
/* SM750 and SM750LE are different in their revision ID only. */
if (revId == SM750LE_REVISION_ID) {
--
2.9.3
next parent reply other threads:[~2017-02-26 15:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1488122987.git.varshar186@gmail.com>
2017-02-26 15:39 ` Varsha Rao [this message]
2017-02-26 15:42 ` [PATCH v4 2/7] staging: sm750fb: Fix line over 80 characters Varsha Rao
2017-02-26 15:46 ` [PATCH v4 3/7] staging: sm750fb: Add identifier to function definition argument Varsha Rao
2017-02-26 15:50 ` [PATCH v4 4/7] staging: sm750fb: Remove unnecessary blank lines Varsha Rao
2017-02-26 15:54 ` [PATCH v4 5/7] staging: sm750fb: Added spaces around arithmetic operators Varsha Rao
2017-02-26 15:57 ` [PATCH v4 6/7] staging: sm750fb: Replace NULL comparison Varsha Rao
2017-02-26 16:01 ` [PATCH v4 7/7] staging: sm750fb: Remove blank lines after { and before } braces Varsha Rao
2017-02-26 20:19 ` [Outreachy kernel] " Julia Lawall
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=58b2f6bb.4a3e630a.a1117.5dfb@mx.google.com \
--to=rvarsha016@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=sudipm.mukherjee@gmail.com \
--cc=teddy.wang@siliconmotion.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 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.