Skip to content

Commit

Permalink
slimbus: fix -Wmisleading-indentation
Browse files Browse the repository at this point in the history
Fixes:
drivers/slimbus/slimbus.c:2757:4: error: misleading indentation;
statement is not part of the previous 'if'
[-Werror,-Wmisleading-indentation]
slc->interval = slc->newintr;
^
drivers/slimbus/slimbus.c:2754:3: note: previous statement is here
if (slc->state == SLIM_CH_ACTIVE ||
^

This one looks like a bug to me and should be carefully reviewed.

Bug: 155426751
Signed-off-by: Nick Desaulniers <[email protected]>
Change-Id: I77f93d0a716a13517d008afd3d4b49ba88171ca7
  • Loading branch information
nickdesaulniers committed May 15, 2020
1 parent 3c478b7 commit 2aa6728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/slimbus/slimbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,9 +2752,10 @@ static void slim_change_existing_chans(struct slim_controller *ctrl, int coeff)
for (i = 0; i < len; i++) {
struct slim_ich *slc = arr[i];
if (slc->state == SLIM_CH_ACTIVE ||
slc->state == SLIM_CH_SUSPENDED)
slc->state == SLIM_CH_SUSPENDED) {
slc->offset = slc->newoff;
slc->interval = slc->newintr;
}
}
}
static void slim_chan_changes(struct slim_device *sb, bool revert)
Expand Down

0 comments on commit 2aa6728

Please sign in to comment.