aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorNuno Sá <[email protected]>2021-08-25 10:41:49 +0200
committerJonathan Cameron <[email protected]>2021-09-14 12:00:32 +0100
commit25d4abbf3ddcccb022d890ad1dc0d87262783b03 (patch)
tree8b130a6ba3cc01454fb16471dfadddb9e3a6c977 /lib/mpi/mpiutil.c
parent919726c9e0efc6dd6476095d37b3ba8e79566c75 (diff)
iio: ltc2983: fail probe if no channels are given
If there are no channels defined in the devicetree, there's no point in probing the device. We were actually requesting a zero sized 'kmalloc' array but since we were not touching the ZERO_SIZE_PTR afterwards, nothing bad was actually happening. Hence this is not really a fix but rather an improvement. Reviewed-by: Alexandru Ardelean <[email protected]> Signed-off-by: Nuno Sá <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions