user_data: remove kmemdup_user()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Sep 2013 09:50:03 +0000 (16 12:50 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Sep 2013 09:50:03 +0000 (16 12:50 +0300)
The function is called memdup_user() and this code doesn't work anyway.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_user_data.c

index 30f743c..9d590f5 100644 (file)
@@ -126,8 +126,6 @@ static int is_user_function(struct expression *expr)
 {
        if (expr->type != EXPR_CALL)
                return 0;
-       if (sym_name_is("kmemdup_user", expr->fn))
-               return SET_DATA;
        return is_user_fn_db(expr);
 }