library: eliminate redundant assignment, <meminfo> api
With the memset to zero of a 'new' meminfo_data struct near the beginning of the meminfo_read_failed function there's never a need to later set anything in it to 0. [ who knows, our patch might even coax opensuse into ] [ reevaluating that 4.0.0 'overflow' guy named below ] Reference(s): . overflow: 'procps-ng-4.0.0-integer-overflow.patch' Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
5edeabbd4a
commit
af443770e3
@ -716,8 +716,6 @@ static int meminfo_read_failed (
|
|||||||
|
|
||||||
if (mHr(SwapFree) < mHr(SwapTotal))
|
if (mHr(SwapFree) < mHr(SwapTotal))
|
||||||
mHr(derived_swap_used) = mHr(SwapTotal) - mHr(SwapFree);
|
mHr(derived_swap_used) = mHr(SwapTotal) - mHr(SwapFree);
|
||||||
else
|
|
||||||
mHr(derived_swap_used) = 0;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#undef mHr
|
#undef mHr
|
||||||
|
Loading…
Reference in New Issue
Block a user