Skip to content

Commit

Permalink
[media] s5p-csis: Do not use uninitialized variables in s5pcsis_suspend
Browse files Browse the repository at this point in the history
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent b5f1220 commit c68956c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/s5p-fimc/mipi-csis.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ static int s5pcsis_suspend(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct v4l2_subdev *sd = platform_get_drvdata(pdev);
struct csis_state *state = sd_to_csis_state(sd);
int ret;
int ret = 0;

v4l2_dbg(1, debug, sd, "%s: flags: 0x%x\n",
__func__, state->flags);
Expand Down Expand Up @@ -630,7 +630,7 @@ static int s5pcsis_resume(struct device *dev)
ret = pdata->phy_enable(state->pdev, true);
if (!ret) {
state->flags |= ST_POWERED;
} else {
} else if (state->supply) {
regulator_disable(state->supply);
goto unlock;
}
Expand Down

0 comments on commit c68956c

Please sign in to comment.