Skip to content

Commit

Permalink
USB: s3c-hsotg: fix checkpatch warnings
Browse files Browse the repository at this point in the history
This patch fixes the checkpatch warnings listed below:

WARNING: braces {} are not necessary for any arm of this statement
WARNING: please, no space before tabs

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed May 13, 2011
1 parent d616766 commit 66e5c64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,11 +616,10 @@ static unsigned get_ep_limit(struct s3c_hsotg_ep *hs_ep)
maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1;
} else {
maxsize = 64+64;
if (hs_ep->dir_in) {
if (hs_ep->dir_in)
maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1;
} else {
else
maxpkt = 2;
}
}

/* we made the constant loading easier above by using +1 */
Expand Down Expand Up @@ -2568,7 +2567,7 @@ static int s3c_hsotg_corereset(struct s3c_hsotg *hsotg)
if (!(grstctl & S3C_GRSTCTL_AHBIdle))
continue;

break; /* reset done */
break; /* reset done */
}

dev_dbg(hsotg->dev, "reset successful\n");
Expand Down

0 comments on commit 66e5c64

Please sign in to comment.