Subject: staging: octeon: remove unnecessary parentheses in interface checks
PATCH 1/1 Subject: staging: octeon: remove unnecessary parentheses in interface checks
The unnecessary parentheses around 'interface < 2' have been removed.
--- drivers/staging/octeon/ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/octeon/ethernet.c +3 -3
@@ -248,7 +248,7 @@ static int cvm_oct_common_change_mtu(struct net_device *dev, int new_mtu) dev->mtu = new_mtu; -if ((interface <2 ) && +if (interface <2 && (cvmx_helper_interface_get_mode (interface) !=CVMX_HELPER_INTERFACE_MODE_SPI )) {int index =INDEX (priv->port);
@@ -294,7 +294,7 @@ static void cvm_oct_common_set_multicast_list(struct net_device *dev)struct octeon_ethernet *priv =netdev_priv (dev);int interface =INTERFACE (priv->port); -if ((interface <2 ) && +if (interface <2 && (cvmx_helper_interface_get_mode (interface) !=CVMX_HELPER_INTERFACE_MODE_SPI )) {union cvmx_gmxx_rxx_adr_ctl control;
@@ -346,7 +346,7 @@ static int cvm_oct_set_mac_filter(struct net_device *dev)union cvmx_gmxx_prtx_cfg gmx_cfg;int interface =INTERFACE (priv->port); -if ((interface <2 ) && +if (interface <2 && (cvmx_helper_interface_get_mode (interface) !=CVMX_HELPER_INTERFACE_MODE_SPI )) {int i;
Signature · 1 line
2.25.1
This is starting to look better, but there is still an extra occurrence of "Subject:" above.
The subject line also probebly contains too much information. "in interface checks" seems like a detail. From seeing the subject line only, probably no one will know what is being referred to. But when looking at the patch, it is completely obvious.
Quoted 1 line · Dorine Tipo
The unnecessary parentheses around 'interface < 2' have been removed.
It would be helpful to explain why the parentheses are unnecessary. This part of the message should also describe what has been done using the imperative.
Quoted 1 line
Signed-off-by Dorine Tipo <[email protected]>
The signed off by looks good now.
julia
Quoted 39 lines
--- drivers/staging/octeon/ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/octeon/ethernet.c +3
-4@@ -248,7 +248,7 @@ static int cvm_oct_common_change_mtu(struct net_device *dev, int new_mtu) dev->mtu = new_mtu; -if ((interface <2 ) && +if (interface <2 && (cvmx_helper_interface_get_mode (interface) !=CVMX_HELPER_INTERFACE_MODE_SPI )) {int index =INDEX (priv->port);@@ -294,7 +294,7 @@ static void cvm_oct_common_set_multicast_list(struct net_device *dev)struct octeon_ethernet *priv =netdev_priv (dev);int interface =INTERFACE (priv->port); -if ((interface <2 ) && +if (interface <2 && (cvmx_helper_interface_get_mode (interface) !=CVMX_HELPER_INTERFACE_MODE_SPI )) {union cvmx_gmxx_rxx_adr_ctl control;@@ -346,7 +346,7 @@ static int cvm_oct_set_mac_filter(struct net_device *dev)union cvmx_gmxx_prtx_cfg gmx_cfg;int interface =INTERFACE (priv->port); -if ((interface <2 ) && +if (interface <2 && (cvmx_helper_interface_get_mode (interface) !=CVMX_HELPER_INTERFACE_MODE_SPI )) {int i; --2.25.1