libselinux: setexecfilecon(): drop dead assignment

The variable `rc` is always unconditionally assigned by the next call of
`setexeccon()` and never read in between.

Found by clang-analyzer.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
Christian Göttsche 2021-05-03 17:11:05 +02:00 committed by Petr Lautrbach
parent 04335ab146
commit 411c5a5458

View File

@ -37,7 +37,6 @@ int setexecfilecon(const char *filename, const char *fallback_type)
newcon = strdup(context_str(con));
if (!newcon)
goto out;
rc = 0;
}
rc = setexeccon(newcon);