net: ena: cosmetic: minor code changes
[sfrench/cifs-2.6.git] / drivers / net / ethernet / amazon / ena / ena_com.c
index bf3465e5a2e7191e13ca19e6b9071466f1bc8503..4b1dbedbe92107a7e8913760a6f647fdeaa58471 100644 (file)
@@ -2285,7 +2285,7 @@ int ena_com_fill_hash_function(struct ena_com_dev *ena_dev,
        if (unlikely(rc))
                return rc;
 
-       if (!((1 << func) & get_resp.u.flow_hash_func.supported_func)) {
+       if (!(BIT(func) & get_resp.u.flow_hash_func.supported_func)) {
                pr_err("Flow hash function %d isn't supported\n", func);
                return -EOPNOTSUPP;
        }