linux-stable/samples/configfs
Bartosz Golaszewski e0ee1fdb3f 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 <bgolaszewski@baylibre.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2020-10-07 15:44:51 +02:00
..
configfs_sample.c samples: configfs: drop unnecessary ternary operators 2020-10-07 15:44:51 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00