aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorLuís Henriques <[email protected]>2023-09-08 12:20:20 +0100
committerIlya Dryomov <[email protected]>2023-09-18 12:04:50 +0200
commit2816a09678f50fc6a69e742e90cb1fd7a9f1f9ff (patch)
treea6ee8c15c90a966b9f6c5e7d0a5199cc5880e8d2 /scripts/generate_rust_analyzer.py
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70 (diff)
ceph: remove unnecessary check for NULL in parse_longname()
Function ceph_get_inode() never returns NULL; instead it returns an ERR_PTR() if something fails. Thus, the check for NULL in parse_longname() is useless and can be dropped. Instead, move there the debug code that does the error checking so that it's only executed if ceph_get_inode() is called. Fixes: dd66df0053ef ("ceph: add support for encrypted snapshot names") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Luís Henriques <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions