diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-20 15:00:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-25 18:49:32 +0200 |
commit | e9301a5a8b6bc5097c76d12c1f07f8a6456bc341 (patch) | |
tree | cafca9814dd591220105910626f7556433eca40c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 10ca84f272319090b41c41370d7d847a319e0e9b (diff) |
staging: mt7621-gpio: avoid devm_kzalloc() hidden inside declarations and refactor function a bit
Driver probe function includes an allocation using devm_kzalloc
which is "hidden" a bit inside the declarations. Extract this
to a better place to increase readability. Also because we are
allocating zeroed memory 'memset' statement is not needed at all.
Condition for checking for a valid gpio id is wrong and it should
be greater or equal instead of only greater so update to be the
good one.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions