diff options
author | Bartosz Golaszewski <[email protected]> | 2020-09-24 14:45:18 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2020-10-07 15:44:51 +0200 |
commit | e0ee1fdb3fc49102e03c34527c5185b4761c7c8f (patch) | |
tree | 507524d687bc7d24e024b2e6565da8b080cd99a1 /scripts/gdb/linux | |
parent | 447243737c9d52d9c77fe0da0ed993903b64f28c (diff) |
samples: configfs: drop unnecessary ternary operators
Checking pointers for NULL value before passing them to container_of()
is pointless because even if we return NULL from the ternary operator,
none of the users checks the returned value but they instead dereference
it unconditionally. AFAICT this cannot really happen either. Simplify
the code by removing the ternary operators from to_childless() et al.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions