瀏覽代碼

kernel/pm_qos_params.c: Remove unnecessary casts of private_data

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Joe Perches 14 年之前
父節點
當前提交
99a51792db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/pm_qos_params.c

+ 1 - 1
kernel/pm_qos_params.c

@@ -394,7 +394,7 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
 	} else
 	} else
 		return -EINVAL;
 		return -EINVAL;
 
 
-	pm_qos_req = (struct pm_qos_request_list *)filp->private_data;
+	pm_qos_req = filp->private_data;
 	pm_qos_update_request(pm_qos_req, value);
 	pm_qos_update_request(pm_qos_req, value);
 
 
 	return count;
 	return count;