[-mm patch] drivers/net/wireless/ipw2200.c: remove division by zero

From: Adrian Bunk
Date: Fri Jul 08 2005 - 22:09:04 EST


gcc correctly complained about a division by zero for HZ < 1000.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/