]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-pinctrl: Test devm_kzalloc for failure while improving the code
authorNishad Kamdar <nishadkamdar@gmail.com>
Tue, 29 Jan 2019 15:45:12 +0000 (21:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2019 14:38:50 +0000 (15:38 +0100)
commitd8de3ff14e4978be44640109b290dab1be4a4866
treeb4df32927e9926be85f552fe854bbd01ffb478bd
parent588078ef0244fd85f9b7ab8d82d0283a2cf8d6d3
staging: mt7621-pinctrl: Test devm_kzalloc for failure while improving the code

This patch tests the return of devm_kzalloc for failure and
improves the code.

Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c