diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-04-23 17:34:02 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:40:59 +0200 |
| commit | fdb099675aed5f42214bfd42bf8ccf21e8a8a3e9 (patch) | |
| tree | 6b4ae8294fc29b1871b0195dcf9147981fe6a726 | |
| parent | 7bd288d0bf00531c520aa26ad0582ed52c266969 (diff) | |
msm: camera: Remove unnecessary parentheses in msm_cam_sensor_handle_reg_gpio
Clang warns:
../drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c:1356:48:
warning: equality comparison with extraneous parentheses
[-Wparentheses-equality]
if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c:1356:48:
note: remove extraneous parentheses around the comparison to silence
this warning
if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) {
~ ^ ~
../drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c:1356:48:
note: use '=' to turn this equality comparison into an assignment
if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) {
^~
=
1 warning generated.
Fixes: 92a558c15e80 ("msm: camera: Add support to enable eLDOs through GPIOs")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
| -rw-r--r-- | drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c b/drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c index 457bd1730232..00860d05671d 100644 --- a/drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c +++ b/drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c @@ -1353,7 +1353,7 @@ int msm_cam_sensor_handle_reg_gpio(int seq_val, CDBG("%s: %d GPIO offset: %d, seq_val: %d\n", __func__, __LINE__, gpio_offset, seq_val); - if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) { + if (gconf->gpio_num_info->valid[gpio_offset] == 1) { gpio_set_value_cansleep( gconf->gpio_num_info->gpio_num [gpio_offset], val); |
