• Jiapeng Chong's avatar
    selinux: Remove redundant assignment to rc · fd781f45
    Jiapeng Chong authored
    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: default avatarAbaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    fd781f45
policydb.c 75.3 KB