Staging: wlags49_h2: Hoist assign from if
[safe/jmp/linux-2.6] / drivers / staging / wlags49_h2 / wl_sysfs.c
index 864e01a..e4c8804 100644 (file)
@@ -46,7 +46,8 @@ static ssize_t show_tallies(struct device *d, struct device_attribute *attr,
     if (dev_isalive(dev)) {
        wl_lock(lp, &flags);
 
-       if ((ret = wl_get_tallies(lp, &tallies)) == 0) {
+       ret = wl_get_tallies(lp, &tallies);
+       if (ret == 0) {
                wl_unlock(lp, &flags);
                ret = snprintf(buf, PAGE_SIZE,
                    "TxUnicastFrames:           %u\n"