[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1327098642-16309-1-git-send-email-gada.kashyap@gmail.com>
Date: Fri, 20 Jan 2012 22:30:42 +0000
From: Kashyap Gada <gada.kashyap@...il.com>
To: gregkh@...e.de
Cc: rebecca@...roid.com, rschultz@...gle.com, jgennis@...gle.com,
dima@...roid.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, Kashyap Gada <gada.kashyap@...il.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
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists