diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2015-01-16 19:23:31 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2015-02-20 20:04:12 +0300 |
commit | da12c1f6857c07bccdb7e96fde938d6840a77f4f (patch) | |
tree | f44e988e9085293d49d80a6231964443a2691e57 /drivers/infiniband/hw/qib/qib_twsi.c | |
parent | a46a2802f7470045714e8086d88a8b966b0753c3 (diff) | |
download | linux-da12c1f6857c07bccdb7e96fde938d6840a77f4f.tar.xz |
IB/qib: Add blank line after declaration
Upstream checkpatch now requires this.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_twsi.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_twsi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_twsi.c b/drivers/infiniband/hw/qib/qib_twsi.c index 647f7beb1b0a..f5698664419b 100644 --- a/drivers/infiniband/hw/qib/qib_twsi.c +++ b/drivers/infiniband/hw/qib/qib_twsi.c @@ -105,6 +105,7 @@ static void scl_out(struct qib_devdata *dd, u8 bit) udelay(2); else { int rise_usec; + for (rise_usec = SCL_WAIT_USEC; rise_usec > 0; rise_usec -= 2) { if (mask & dd->f_gpio_mod(dd, 0, 0, 0)) break; @@ -326,6 +327,7 @@ int qib_twsi_reset(struct qib_devdata *dd) static int qib_twsi_wr(struct qib_devdata *dd, int data, int flags) { int ret = 1; + if (flags & QIB_TWSI_START) start_seq(dd); @@ -435,8 +437,7 @@ int qib_twsi_blk_wr(struct qib_devdata *dd, int dev, int addr, int sub_len; const u8 *bp = buffer; int max_wait_time, i; - int ret; - ret = 1; + int ret = 1; while (len > 0) { if (dev == QIB_TWSI_NO_DEV) { |