summaryrefslogtreecommitdiff
path: root/drivers/md/dm-ps-queue-length.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-ps-queue-length.c')
-rw-r--r--drivers/md/dm-ps-queue-length.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-ps-queue-length.c b/drivers/md/dm-ps-queue-length.c
index d2663b1b136c..4afea160afab 100644
--- a/drivers/md/dm-ps-queue-length.c
+++ b/drivers/md/dm-ps-queue-length.c
@@ -42,7 +42,7 @@ struct path_info {
static struct selector *alloc_selector(void)
{
- struct selector *s = kmalloc_obj(*s, GFP_KERNEL);
+ struct selector *s = kmalloc_obj(*s);
if (s) {
INIT_LIST_HEAD(&s->valid_paths);
@@ -142,7 +142,7 @@ static int ql_add_path(struct path_selector *ps, struct dm_path *path,
}
/* Allocate the path information structure */
- pi = kmalloc_obj(*pi, GFP_KERNEL);
+ pi = kmalloc_obj(*pi);
if (!pi) {
*error = "queue-length ps: Error allocating path information";
return -ENOMEM;