summaryrefslogtreecommitdiff
path: root/drivers/input/ff-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/ff-core.c')
-rw-r--r--drivers/input/ff-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index d6e2c3017435..17061fb2f5b8 100644
--- a/drivers/input/ff-core.c
+++ b/drivers/input/ff-core.c
@@ -307,7 +307,7 @@ int input_ff_create(struct input_dev *dev, unsigned int max_effects)
if (!ff)
return -ENOMEM;
- ff->effects = kzalloc_objs(*ff->effects, max_effects, GFP_KERNEL);
+ ff->effects = kzalloc_objs(*ff->effects, max_effects);
if (!ff->effects)
return -ENOMEM;