mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kashyap Gada <gada.kashyap@gmail.com>
To: gregkh@suse.de
Cc: rebecca@android.com, rschultz@google.com, jgennis@google.com,
	dima@android.com, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org,
	Kashyap Gada <gada.kashyap@gmail.com>
Subject: [PATCH 3/3] Staging: android: Fix brace coding style issue in pmem.c This is a patch to the pmem.c that fixes up two brace warnings found by checkpatch.pl tool
Date: Fri, 20 Jan 2012 22:30:42 +0000	[thread overview]
Message-ID: <1327098642-16309-1-git-send-email-gada.kashyap@gmail.com> (raw)

diff --git a/drivers/staging/android/pmem.c b/drivers/staging/android/pmem.c
index 7d97032..65ba61a 100644
--- a/drivers/staging/android/pmem.c
+++ b/drivers/staging/android/pmem.c
@@ -708,9 +708,8 @@ int get_pmem_addr(struct file *file, unsigned long *start,
 	struct pmem_data *data;
 	int id;
 
-	if (!is_pmem_file(file) || !has_allocation(file)) {
+	if (!is_pmem_file(file) || !has_allocation(file))
 		return -1;
-	}
 
 	data = (struct pmem_data *)file->private_data;
 	if (data->index == -1) {
@@ -789,9 +788,8 @@ void flush_pmem_file(struct file *file, unsigned long offset, unsigned long len)
 	struct list_head *elt;
 	void *flush_start, *flush_end;
 
-	if (!is_pmem_file(file) || !has_allocation(file)) {
+	if (!is_pmem_file(file) || !has_allocation(file))
 		return;
-	}
 
 	id = get_id(file);
 	data = (struct pmem_data *)file->private_data;
-- 
1.7.5.4


                 reply	other threads:[~2012-01-20 22:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1327098642-16309-1-git-send-email-gada.kashyap@gmail.com \
    --to=gada.kashyap@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=dima@android.com \
    --cc=gregkh@suse.de \
    --cc=jgennis@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rebecca@android.com \
    --cc=rschultz@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®