All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [next PATCH S91 01/11] virtchnl: Whitespace and parenthesis cleanup
@ 2018-05-10 12:59 Alice Michael
  2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 02/11] i40evf: Fix client header define Alice Michael
                   ` (10 more replies)
  0 siblings, 11 replies; 22+ messages in thread
From: Alice Michael @ 2018-05-10 12:59 UTC (permalink / raw)
  To: intel-wired-lan

From: Bruce Allan <bruce.w.allan@intel.com>

Clean up existing instances of unnecessary parentheses in if
statement and change order of conditionals to make it easier to read

The opening /* should be followed by a single space and the closing */
should be preceded with a single space.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
---
 include/linux/avf/virtchnl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
index b0a7f31..212b382 100644
--- a/include/linux/avf/virtchnl.h
+++ b/include/linux/avf/virtchnl.h
@@ -485,7 +485,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_key);
 struct virtchnl_rss_lut {
 	u16 vsi_id;
 	u16 lut_entries;
-	u8 lut[1];        /* RSS lookup table*/
+	u8 lut[1];        /* RSS lookup table */
 };
 
 VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_lut);
@@ -819,7 +819,7 @@ virtchnl_vc_validate_vf_msg(struct virtchnl_version_info *ver, u32 v_opcode,
 		return VIRTCHNL_ERR_PARAM;
 	}
 	/* few more checks */
-	if ((valid_len != msglen) || (err_msg_format))
+	if (err_msg_format || valid_len != msglen)
 		return VIRTCHNL_STATUS_ERR_OPCODE_MISMATCH;
 
 	return 0;
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-05-11 18:16 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 12:59 [Intel-wired-lan] [next PATCH S91 01/11] virtchnl: Whitespace and parenthesis cleanup Alice Michael
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 02/11] i40evf: Fix client header define Alice Michael
2018-05-11 18:09   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 03/11] i40e: calculate ethtool stats size in a separate function Alice Michael
2018-05-11 18:10   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 04/11] i40e: remove duplicate pfc stats Alice Michael
2018-05-11 18:11   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 05/11] i40e: cleanup whitespace for some ethtool stat definitions Alice Michael
2018-05-11 18:11   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 06/11] i40e: Fix recalculation of MSI-X vectors for VMDq Alice Michael
2018-05-11 18:11   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 07/11] i40e: add tx_busy to ethtool stats Alice Michael
2018-05-11 18:14   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 08/11] i40evf: remove MAX_QUEUES and just use I40EVF_MAX_REQ_QUEUES Alice Michael
2018-05-11 18:15   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 09/11] i40e: cleanup wording in a header comment Alice Michael
2018-05-11 18:15   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91 10/11] i40e: free the skb after clearing the bitlock Alice Michael
2018-05-11 18:16   ` Bowers, AndrewX
2018-05-10 12:59 ` [Intel-wired-lan] [next PATCH S91-V1 11/11] i40evf: Fix a hardware reset support in VF driver Alice Michael
2018-05-11 18:16   ` Bowers, AndrewX
2018-05-11 18:09 ` [Intel-wired-lan] [next PATCH S91 01/11] virtchnl: Whitespace and parenthesis cleanup Bowers, AndrewX

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.