Skip to content

Commit

Permalink
Staging: dream: camera: sk5k3e2fx: fix code style issues
Browse files Browse the repository at this point in the history
This fixes some code style issues about assignments in if conditions.

Signed-off-by: Chihau Chau <chihau@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Chihau Chau authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent df84f94 commit b94c765
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/dream/camera/s5k3e2fx.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,12 @@ static int s5k3e2fx_sensor_open_init(const struct msm_camera_sensor_info *data)
}

/* initialize AF */
if ((rc = s5k3e2fx_i2c_write_b(s5k3e2fx_client->addr,
0x3146, 0x3A)) < 0)
rc = s5k3e2fx_i2c_write_b(s5k3e2fx_client->addr, 0x3146, 0x3A);
if (rc < 0)
goto init_fail1;

if ((rc = s5k3e2fx_i2c_write_b(s5k3e2fx_client->addr,
0x3130, 0x03)) < 0)
rc = s5k3e2fx_i2c_write_b(s5k3e2fx_client->addr, 0x3130, 0x03);
if (rc < 0)
goto init_fail1;

goto init_done;
Expand Down

0 comments on commit b94c765

Please sign in to comment.