diff options
author | Jingoo Han <jg1.han@samsung.com> | 2011-05-13 08:26:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-13 18:51:07 -0400 |
commit | 66e5c643488a26d2a6b737bdbd92fc72f13cdeac (patch) | |
tree | c38124c4e49c93013a626d219c8866f51f80e552 /drivers/usb | |
parent | d6167660b284447c710d9067754c69feab229892 (diff) |
USB: s3c-hsotg: fix checkpatch warnings
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index baf96ce16b6a..1d332f5da3c8 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c | |||
@@ -616,11 +616,10 @@ static unsigned get_ep_limit(struct s3c_hsotg_ep *hs_ep) | |||
616 | maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1; | 616 | maxpkt = S3C_DxEPTSIZ_PktCnt_LIMIT + 1; |
617 | } else { | 617 | } else { |
618 | maxsize = 64+64; | 618 | maxsize = 64+64; |
619 | if (hs_ep->dir_in) { | 619 | if (hs_ep->dir_in) |
620 | maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1; | 620 | maxpkt = S3C_DIEPTSIZ0_PktCnt_LIMIT + 1; |
621 | } else { | 621 | else |
622 | maxpkt = 2; | 622 | maxpkt = 2; |
623 | } | ||
624 | } | 623 | } |
625 | 624 | ||
626 | /* we made the constant loading easier above by using +1 */ | 625 | /* we made the constant loading easier above by using +1 */ |
@@ -2568,7 +2567,7 @@ static int s3c_hsotg_corereset(struct s3c_hsotg *hsotg) | |||
2568 | if (!(grstctl & S3C_GRSTCTL_AHBIdle)) | 2567 | if (!(grstctl & S3C_GRSTCTL_AHBIdle)) |
2569 | continue; | 2568 | continue; |
2570 | 2569 | ||
2571 | break; /* reset done */ | 2570 | break; /* reset done */ |
2572 | } | 2571 | } |
2573 | 2572 | ||
2574 | dev_dbg(hsotg->dev, "reset successful\n"); | 2573 | dev_dbg(hsotg->dev, "reset successful\n"); |