mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
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>
This commit is contained in:
parent
677aaa4306
commit
bcd2d92e62
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue