summaryrefslogtreecommitdiff
path: root/mm/zpool.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-03-21 15:54:12 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-03-29 18:11:23 +0200
commit4ea0c97776bf8c63805eb0f8182d9c20072219d9 (patch)
treebda5e8b20c6d9ccce80db52c84cb67da0073592a /mm/zpool.c
parent79736429c97f517247645e73e75c956efd09ad03 (diff)
gpiolib: Check array_info for NULL only once in gpiod_get_array()
gpiod_get_array() has a long if-else-if branching where each of them tests for the same variable to be not NULL. Instead, check for NULL before even going to that flow. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'mm/zpool.c')
0 files changed, 0 insertions, 0 deletions