diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2011-02-08 14:41:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-09 14:55:51 -0800 |
commit | bcd2d92e62254320d012c8e879d651eeaa350661 (patch) | |
tree | 68db28e7ff5459bbda496fdd40a153683a5f2ec3 /drivers/staging | |
parent | 677aaa430669861f39bd43c02bdbc2e8f7f7ad2c (diff) |
staging: ft1000: Remove unnecessary check in write_blk_fifo().
byte_length = word_length * 4;
if (byte_length % 4) ...
word_length * 4 is always aligned at 4 bytes. Remove pointless
check.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index 1797c4da91df..8e622425aa13 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c @@ -644,16 +644,9 @@ static u32 write_blk_fifo(struct ft1000_device *ft1000dev, u16 **pUsFile, { u32 Status = STATUS_SUCCESS; int byte_length; - long aligncnt; byte_length = word_length * 4; - if (byte_length % 4) - aligncnt = 4 - (byte_length % 4); - else - aligncnt = 0; - byte_length += aligncnt; - if (byte_length && ((byte_length % 64) == 0)) byte_length += 4; |