[PATCH] char: rpmb: fix memdup_user.cocci warnings

From: kbuild test robot
Date: Sun Apr 03 2016 - 06:37:00 EST


drivers/char/rpmb/cdev.c:94:13-20: WARNING opportunity for memdup_user

Use memdup_user rather than duplicating its implementation
This is a little bit restricted to reduce false positives

Generated by: scripts/coccinelle/api/memdup_user.cocci

CC: Tomas Winkler <tomas.winkler@xxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

0 files changed

rule starting on line 17: position variables or mixed modifs interfere with comm_assoc isobool (
(

(
(unknown *to == NULL)
>>> IS_ERR(rule starting on line 17:to)

|
!unknown *to
>>> IS_ERR(rule starting on line 17:to)

)
|
(unknown *NULL == unknown *to)
>>> IS_ERR(rule starting on line 17:to)

) || ...)