diff options
author | Yejune Deng <[email protected]> | 2021-01-22 15:19:25 +0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-01-29 12:33:17 +0100 |
commit | 0a74d61c7d842b583f33f74d7a9e93201826f4c5 (patch) | |
tree | 439254e20f64bf65c0d83f22198f8309382eff91 /net/unix/unix_bpf.c | |
parent | 49200d17d27d5cc1aede2d1bb2a78dbfc1563e65 (diff) |
x86/fpu/xstate: Use sizeof() instead of a constant
Use sizeof() instead of a constant in fpstate_sanitize_xstate().
Remove use of the address of the 0th array element of ->st_space and
->xmm_space which is equivalent to the array address itself:
No code changed:
# arch/x86/kernel/fpu/xstate.o:
text data bss dec hex filename
9694 899 4 10597 2965 xstate.o.before
9694 899 4 10597 2965 xstate.o.after
md5:
5a43fc70bad8e2a1784f67f01b71aabb xstate.o.before.asm
5a43fc70bad8e2a1784f67f01b71aabb xstate.o.after.asm
[ bp: Massage commit message. ]
Signed-off-by: Yejune Deng <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions