Staging: dream: pmem.c: Fix checkpatch.pl issues.

This patch resolves checkpatch.pl issues in the pmem.c file.

Signed-off-by: Nanakos Chrysostomos <nanakos@wired-net.gr>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Nanakos Chrysostomos 2010-05-27 16:19:52 +00:00 committed by Greg Kroah-Hartman
parent 231ded903f
commit ef079a76fe
1 changed files with 7 additions and 7 deletions

View File

@ -24,8 +24,8 @@
#include <linux/mempolicy.h> #include <linux/mempolicy.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <asm/io.h> #include <linux/io.h>
#include <asm/uaccess.h> #include <linux/uaccess.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#define PMEM_MAX_DEVICES 10 #define PMEM_MAX_DEVICES 10
@ -175,7 +175,7 @@ static int pmem_mmap(struct file *, struct vm_area_struct *);
static int pmem_open(struct inode *, struct file *); static int pmem_open(struct inode *, struct file *);
static long pmem_ioctl(struct file *, unsigned int, unsigned long); static long pmem_ioctl(struct file *, unsigned int, unsigned long);
struct file_operations pmem_fops = { const struct file_operations pmem_fops = {
.release = pmem_release, .release = pmem_release,
.mmap = pmem_mmap, .mmap = pmem_mmap,
.open = pmem_open, .open = pmem_open,
@ -399,8 +399,8 @@ static int pmem_allocate(int id, unsigned long len)
DLOG("order %lx\n", order); DLOG("order %lx\n", order);
/* look through the bitmap: /* look through the bitmap:
* if you find a free slot of the correct order use it * if you find a free slot of the correct order use it
* otherwise, use the best fit (smallest with size > order) slot * otherwise, use the best fit (smallest with size > order) slot
*/ */
while (curr < end) { while (curr < end) {
if (PMEM_IS_FREE(id, curr)) { if (PMEM_IS_FREE(id, curr)) {
@ -426,8 +426,8 @@ static int pmem_allocate(int id, unsigned long len)
} }
/* now partition the best fit: /* now partition the best fit:
* split the slot into 2 buddies of order - 1 * split the slot into 2 buddies of order - 1
* repeat until the slot is of the correct order * repeat until the slot is of the correct order
*/ */
while (PMEM_ORDER(id, best_fit) > (unsigned char)order) { while (PMEM_ORDER(id, best_fit) > (unsigned char)order) {
int buddy; int buddy;