diff options
author | yatipadia <ypadia@redhat.com> | 2019-10-04 18:21:42 +0530 |
---|---|---|
committer | Sunny Kumar <sunkumar@redhat.com> | 2019-10-11 09:37:39 +0000 |
commit | 1004f959ca3b3697f2759f929ca4c11537f6c488 (patch) | |
tree | ed08fc579faa60227a92ee256afd6f1366ff5919 /xlators/features/quota/src/quotad-aggregator.h | |
parent | 332bac01dd15aaad53ba144c80edca551fe58e11 (diff) |
POSIX/xlators: Unused and unchecked value coverity issue
This patch addresses CID-1274094 and CID-1382354
Problem(1): "ret" was assigned a value which was never used,
it was overwritten by 0 and hence has no use.
Problem(2): function was called without checking the return value.
Solution(1): Removed the assignment and just called the function
whose value was being written in ret.
Solution(2): There was no need to check for the return value as at
the end 0 is returned, so typecasted the return value as void.
Change-Id: Iefd0e9000c466ef2428c754c31370263bf1ca0d0
updates: bz#789278
Diffstat (limited to 'xlators/features/quota/src/quotad-aggregator.h')
0 files changed, 0 insertions, 0 deletions