diff options
| author | Jiapeng Chong <[email protected]> | 2021-04-28 10:00:15 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2021-05-11 01:48:11 +0000 |
| commit | fd781f459b60522f9fbfa1e125f122cf86d4a45b (patch) | |
| tree | 1969ed00ea059867deba6e83bde3488b8da896fc /drivers/net/wwan/iosm/iosm_ipc_protocol.c | |
| parent | selinux: Corrected comment to match kernel-doc comment (diff) | |
| download | kernel-fd781f459b60522f9fbfa1e125f122cf86d4a45b.tar.gz kernel-fd781f459b60522f9fbfa1e125f122cf86d4a45b.zip | |
selinux: Remove redundant assignment to rc
Variable rc is set to '-EINVAL' but this value is never read as
it is overwritten or not used later on, hence it is a redundant
assignment and can be removed.
Cleans up the following clang-analyzer warning:
security/selinux/ss/services.c:2103:3: warning: Value stored to 'rc' is
never read [clang-analyzer-deadcode.DeadStores].
security/selinux/ss/services.c:2079:2: warning: Value stored to 'rc' is
never read [clang-analyzer-deadcode.DeadStores].
security/selinux/ss/services.c:2071:2: warning: Value stored to 'rc' is
never read [clang-analyzer-deadcode.DeadStores].
security/selinux/ss/services.c:2062:2: warning: Value stored to 'rc' is
never read [clang-analyzer-deadcode.DeadStores].
security/selinux/ss/policydb.c:2592:3: warning: Value stored to 'rc' is
never read [clang-analyzer-deadcode.DeadStores].
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions
