include/asm-x86/i387.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -100,7 +100,8 @@ static inline int save_i387_checking(struct i387_fxsave_struct __user *fx)
|
|||||||
#else
|
#else
|
||||||
: [fx] "cdaSDb" (fx), "0" (0));
|
: [fx] "cdaSDb" (fx), "0" (0));
|
||||||
#endif
|
#endif
|
||||||
if (unlikely(err) && __clear_user(fx, sizeof(struct i387_fxsave_struct)))
|
if (unlikely(err) &&
|
||||||
|
__clear_user(fx, sizeof(struct i387_fxsave_struct)))
|
||||||
err = -EFAULT;
|
err = -EFAULT;
|
||||||
/* No need to clear here because the caller clears USED_MATH */
|
/* No need to clear here because the caller clears USED_MATH */
|
||||||
return err;
|
return err;
|
||||||
@@ -156,8 +157,10 @@ static inline int save_i387(struct _fpstate __user *buf)
|
|||||||
return 0;
|
return 0;
|
||||||
clear_used_math(); /* trigger finit */
|
clear_used_math(); /* trigger finit */
|
||||||
if (task_thread_info(tsk)->status & TS_USEDFPU) {
|
if (task_thread_info(tsk)->status & TS_USEDFPU) {
|
||||||
err = save_i387_checking((struct i387_fxsave_struct __user *)buf);
|
err = save_i387_checking((struct i387_fxsave_struct __user *)
|
||||||
if (err) return err;
|
buf);
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
task_thread_info(tsk)->status &= ~TS_USEDFPU;
|
task_thread_info(tsk)->status &= ~TS_USEDFPU;
|
||||||
stts();
|
stts();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user