Messages in this thread Patch in this message | | | Date | Sat, 9 Jul 2005 05:07:13 +0200 | From | Adrian Bunk <> | Subject | [-mm patch] drivers/net/wireless/ipw2200.c: remove division by zero |
| |
gcc correctly complained about a division by zero for HZ < 1000.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on: - 2 Jul 2005
--- linux-2.6.13-rc1-mm1-full/drivers/net/wireless/ipw2200.c.old 2005-07-02 23:14:39.000000000 +0200 +++ linux-2.6.13-rc1-mm1-full/drivers/net/wireless/ipw2200.c 2005-07-02 23:15:39.000000000 +0200 @@ -1170,7 +1170,7 @@ HOST_COMPLETE_TIMEOUT); if (rc == 0) { IPW_DEBUG_INFO("Command completion failed out after %dms.\n", - HOST_COMPLETE_TIMEOUT / (HZ / 1000)); + (1000 * HOST_COMPLETE_TIMEOUT) / HZ); priv->status &= ~STATUS_HCMD_ACTIVE; return -EIO; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |