Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

apparmor: remove unneeded #ifdef in decompress_zstd()

The whole function is guarded by CONFIG_SECURITY_APPARMOR_EXPORT_BINARY,
so the #ifdef here is redundant, remove it.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>

authored by

Xiu Jianfeng and committed by
John Johansen
5ebb39eb 8884ba07

-2
-2
security/apparmor/apparmorfs.c
··· 1314 1314 1315 1315 static int decompress_zstd(char *src, size_t slen, char *dst, size_t dlen) 1316 1316 { 1317 - #ifdef CONFIG_SECURITY_APPARMOR_EXPORT_BINARY 1318 1317 if (slen < dlen) { 1319 1318 const size_t wksp_len = zstd_dctx_workspace_bound(); 1320 1319 zstd_dctx *ctx; ··· 1340 1341 kvfree(wksp); 1341 1342 return ret; 1342 1343 } 1343 - #endif 1344 1344 1345 1345 if (dlen < slen) 1346 1346 return -EINVAL;