From: aybuke ozdemir <aybuke.147@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: aybuke ozdemir <aybuke.147@gmail.com>
Subject: [PATCH 2/3] Staging: i2o: Remove unnecessary braces
Date: Thu, 26 Feb 2015 00:10:21 +0200 [thread overview]
Message-ID: <1424902222-10105-2-git-send-email-aybuke.147@gmail.com> (raw)
In-Reply-To: <1424902222-10105-1-git-send-email-aybuke.147@gmail.com>
Brackets were removed from the expression that containing single
statement. Removed following checkpatch.pl warnings:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
drivers/staging/i2o/device.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/i2o/device.c b/drivers/staging/i2o/device.c
index 162a887..e47496c 100644
--- a/drivers/staging/i2o/device.c
+++ b/drivers/staging/i2o/device.c
@@ -565,9 +565,8 @@ int i2o_parm_table_get(struct i2o_device *dev, int oper, int group,
size += 4 - size % 4;
opblk = kmalloc(size, GFP_KERNEL);
- if (opblk == NULL) {
+ if (opblk == NULL)
return -ENOMEM;
- }
opblk[0] = 1; /* operation count */
opblk[1] = 0; /* pad */
--
1.9.1
next prev parent reply other threads:[~2015-02-25 22:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 22:10 [PATCH 1/3] Staging: i2o: Remove unnecessary 'out of memory' message aybuke ozdemir
2015-02-25 22:10 ` aybuke ozdemir [this message]
2015-02-25 22:10 ` [PATCH 3/3] Staging: i2o: Corrected code indentation aybuke ozdemir
2015-02-25 22:19 ` [Outreachy kernel] " Julia Lawall
2015-02-25 22:20 ` [Outreachy kernel] [PATCH 1/3] Staging: i2o: Remove unnecessary 'out of memory' message Julia Lawall
2015-02-25 23:00 ` Greg KH
2015-02-25 23:03 ` Julia Lawall
2015-02-25 23:17 ` aybüke özdemir
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=1424902222-10105-2-git-send-email-aybuke.147@gmail.com \
--to=aybuke.147@gmail.com \
--cc=outreachy-kernel@googlegroups.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.