aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 3e8d555ba3a9..e8bfc26b10a4 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -2071,17 +2071,11 @@ void lbs_get_fwversion(struct lbs_private *priv, char *fwversion, int maxlen)
2071 2071
2072 mutex_lock(&priv->lock); 2072 mutex_lock(&priv->lock);
2073 2073
2074 if (priv->fwreleasenumber[3] == 0) 2074 sprintf(fwver, "%u.%u.%u.p%u",
2075 sprintf(fwver, "%u.%u.%u", 2075 priv->fwrelease >> 24 & 0xff,
2076 priv->fwreleasenumber[2], 2076 priv->fwrelease >> 16 & 0xff,
2077 priv->fwreleasenumber[1], 2077 priv->fwrelease >> 8 & 0xff,
2078 priv->fwreleasenumber[0]); 2078 priv->fwrelease & 0xff);
2079 else
2080 sprintf(fwver, "%u.%u.%u.p%u",
2081 priv->fwreleasenumber[2],
2082 priv->fwreleasenumber[1],
2083 priv->fwreleasenumber[0],
2084 priv->fwreleasenumber[3]);
2085 2079
2086 mutex_unlock(&priv->lock); 2080 mutex_unlock(&priv->lock);
2087 snprintf(fwversion, maxlen, fwver); 2081 snprintf(fwversion, maxlen, fwver);