diff options
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
-rw-r--r-- | drivers/message/fusion/mptctl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index b0a892a2bf1b..70bb7530b22c 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
@@ -1741,12 +1741,7 @@ mptctl_replace_fw (unsigned long arg) | |||
1741 | 1741 | ||
1742 | /* Allocate memory for the new FW image | 1742 | /* Allocate memory for the new FW image |
1743 | */ | 1743 | */ |
1744 | newFwSize = karg.newImageSize; | 1744 | newFwSize = ALIGN(karg.newImageSize, 4); |
1745 | |||
1746 | if (newFwSize & 0x01) | ||
1747 | newFwSize += 1; | ||
1748 | if (newFwSize & 0x02) | ||
1749 | newFwSize += 2; | ||
1750 | 1745 | ||
1751 | mpt_alloc_fw_memory(ioc, newFwSize); | 1746 | mpt_alloc_fw_memory(ioc, newFwSize); |
1752 | if (ioc->cached_fw == NULL) | 1747 | if (ioc->cached_fw == NULL) |