* [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
@ 2012-01-20 22:30 Kashyap Gada
0 siblings, 0 replies; only message in thread
From: Kashyap Gada @ 2012-01-20 22:30 UTC (permalink / raw)
To: gregkh
Cc: rebecca, rschultz, jgennis, dima, devel, linux-kernel, Kashyap Gada
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-20 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20 22:30 [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 Kashyap Gada
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®