s390/cpum_cf: remove unnecessary copy_from_user call
authorThomas Richter <tmricht@linux.ibm.com>
Fri, 31 Mar 2023 09:42:20 +0000 (11:42 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 13 Apr 2023 15:36:27 +0000 (17:36 +0200)
commit26300860c2be489fa8c919e55fba28fa782cbb1e
tree4c2df445ccd5b396b0ea20650ea817aa8b66c464
parent3cdf0269cdc2c4728b71af4199823b6284379d42
s390/cpum_cf: remove unnecessary copy_from_user call

Struct s390_ctrset_read userdata is filled by ioctl_read operation
using put_user/copy_to_user. However, the ctrset->data value access
is not performed anywhere during the ioctl_read operation.
Remove unnecessary copy_from_user() call.
No functional change.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Suggested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_cpum_cf.c