#define IBMVNIC_STAT_OFF(stat) (offsetof(struct ibmvnic_adapter, stats) + \
                             offsetof(struct ibmvnic_statistics, stat))
-#define IBMVNIC_GET_STAT(a, off) (*((u64 *)(((unsigned long)(a)) + off)))
+#define IBMVNIC_GET_STAT(a, off) (*((u64 *)(((unsigned long)(a)) + (off))))
 
 static const struct ibmvnic_stat ibmvnic_stats[] = {
        {"rx_packets", IBMVNIC_STAT_OFF(rx_packets)},
                        rc = reset_tx_pools(adapter);
                        if (rc) {
                                netdev_dbg(adapter->netdev, "reset tx pools failed (%d)\n",
-                                               rc);
+                                          rc);
                                goto out;
                        }
 
                        rc = reset_rx_pools(adapter);
                        if (rc) {
                                netdev_dbg(adapter->netdev, "reset rx pools failed (%d)\n",
-                                               rc);
+                                          rc);
                                goto out;
                        }
                }
 
        if (adapter->state == VNIC_PROBING) {
                netdev_warn(netdev, "Adapter reset during probe\n");
-               ret = adapter->init_done_rc = EAGAIN;
+               adapter->init_done_rc = EAGAIN;
+               ret = EAGAIN;
                goto err;
        }
 
                            channels->rx_count, channels->tx_count,
                            adapter->req_rx_queues, adapter->req_tx_queues);
        return ret;
-
 }
 
 static void ibmvnic_get_strings(struct net_device *dev, u32 stringset, u8 *data)
                return;
 
        for (i = 0; i < ARRAY_SIZE(ibmvnic_stats); i++)
-               data[i] = be64_to_cpu(IBMVNIC_GET_STAT(adapter,
-                                               ibmvnic_stats[i].offset));
+               data[i] = be64_to_cpu(IBMVNIC_GET_STAT
+                                     (adapter, ibmvnic_stats[i].offset));
 
        for (j = 0; j < adapter->req_tx_queues; j++) {
                data[i] = adapter->tx_stats_buffers[j].packets;
 
        return 0;
 }
+
 static const struct ethtool_ops ibmvnic_ethtool_ops = {
        .get_drvinfo            = ibmvnic_get_drvinfo,
        .get_msglevel           = ibmvnic_get_msglevel,
                /* H_EOI would fail with rc = H_FUNCTION when running
                 * in XIVE mode which is expected, but not an error.
                 */
-               if (rc && (rc != H_FUNCTION))
+               if (rc && rc != H_FUNCTION)
                        dev_err(dev, "H_EOI FAILED irq 0x%llx. rc=%ld\n",
                                val, rc);
        }