File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -163,16 +163,10 @@ query_engine_cycles(struct xe_device *xe,
163
163
resp .width = 36 ;
164
164
165
165
/* Only write to the output fields of user query */
166
- if (put_user (resp .cpu_timestamp , & query_ptr -> cpu_timestamp ))
167
- return - EFAULT ;
168
-
169
- if (put_user (resp .cpu_delta , & query_ptr -> cpu_delta ))
170
- return - EFAULT ;
171
-
172
- if (put_user (resp .engine_cycles , & query_ptr -> engine_cycles ))
173
- return - EFAULT ;
174
-
175
- if (put_user (resp .width , & query_ptr -> width ))
166
+ if (put_user (resp .cpu_timestamp , & query_ptr -> cpu_timestamp ) ||
167
+ put_user (resp .cpu_delta , & query_ptr -> cpu_delta ) ||
168
+ put_user (resp .engine_cycles , & query_ptr -> engine_cycles ) ||
169
+ put_user (resp .width , & query_ptr -> width ))
176
170
return - EFAULT ;
177
171
178
172
return 0 ;
You can’t perform that action at this time.
0 commit comments