OSDN Git Service

ecryptfs: Remove two pointless NULL checks in ecryptfs_dump_cipher
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 04:39:37 +0000 (21:39 -0700)
committerNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 07:41:09 +0000 (00:41 -0700)
commitf4e06599faaeeba1299f14526e2e8cb1fe8fb2a7
tree81f67a793ca2c9dc6491eac1d331e61ea85f21d6
parent720ebe73d99b9ba0d3d4324e0539eb4c244fe090
ecryptfs: Remove two pointless NULL checks in ecryptfs_dump_cipher

Clang warns:

../fs/ecryptfs/debug.c:142:12: warning: address of array 'stat->cipher'
will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (stat->cipher)
        ~~  ~~~~~~^~~~~~
../fs/ecryptfs/debug.c:146:12: warning: address of array
'stat->cipher_mode' will always evaluate to 'true'
[-Wpointer-bool-conversion]
        if (stat->cipher_mode)
        ~~  ~~~~~~^~~~~~~~~~~
2 warnings generated.

Fixes: f50a4a1dc7a0 ("eCryptfs: fixed bug in cipher handling")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
fs/ecryptfs/debug.c