diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2019-06-24 13:34:27 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-06-25 09:26:11 +0200 |
commit | 2ef085bd110c5723ca08a522608ac3468dc304bd (patch) | |
tree | 861f6b1fb1279551f2dba98c6f5e02400b474d52 /mm/swap_state.c | |
parent | 4fedcde7026835a05b44aab388d4bb95f3226286 (diff) |
x86/resctrl: Cleanup cbm_ensure_valid()
A recent fix to the cbm_ensure_valid() function left some coding style
issues that are now addressed:
- Return a value instead of using a function parameter as input and
output
- Use if (!val) instead of if (val == 0)
- Follow reverse fir tree ordering of variable declarations
Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fenghua.yu@intel.com
Cc: tony.luck@intel.com
Cc: hpa@zytor.com
Link: https://lkml.kernel.org/r/15ba03856f1d944468ee6f44e3fd7aa548293ede.1561408280.git.reinette.chatre@intel.com
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions