Merge "msm_perf: fix warnings to enable msm_perf"

This commit is contained in:
qctecmdr 2022-10-17 12:13:10 -07:00 committed by Gerrit - the friendly Code Review server
commit ceee550247

View File

@ -914,7 +914,13 @@ static ssize_t set_game_start_pid(struct kobject *kobj,
struct kobj_attribute *attr, const char *buf, size_t count)
{
long usr_val = 0;
kstrtol(buf, 0, &usr_val);
int ret;
ret = kstrtol(buf, 0, &usr_val);
if (ret) {
pr_err("msm_perf: kstrtol failed, ret=%d\n", ret);
return ret;
}
atomic_set(&game_status_pid, usr_val);
return count;
}