Commit 4b93698c authored by Willie Ruan's avatar Willie Ruan Committed by Gerrit - the friendly Code Review server
Browse files

gpio: pm8xxx-gpio: remove unnecessary checks in static callbacks



Remove the parameter checks in pm_gpio_get and pm_gpio_set
callbacks because they are not necessary as callbacks of gpiolib.
This also removes an issue of NULL pointer check is after being
dereferenced.

Change-Id: Iaca83877fe93ba6335d40c9a36465f909aef2c97
Signed-off-by: default avatarWillie Ruan <wruan@codeaurora.org>
parent c4cb3dbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment