Whamcloud - gitweb
LU-6210 ptlrpc: Use C99 initializer in ptlrpc_register_rqbd() 79/28479/3
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 7 Aug 2017 18:01:32 +0000 (14:01 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Aug 2017 06:26:53 +0000 (06:26 +0000)
commit3af10d510078ddf050fbda2ef80bdc6920d89f8d
tree217884aced0627fc75c5255237d6da9cc9004737
parent33a4b5ef00e88b33136d09d2f4029223a3c4d681
LU-6210 ptlrpc: Use C99 initializer in ptlrpc_register_rqbd()

This patch makes no functional changes.  The struct initializer in
ptlrpc_register_rqbd() is updated to C99 syntax.

C89 positional initializers require values to be placed in the
correct order. This will cause errors if the fields of the struct
definition are reordered or fields are added or removed. C99 named
initializers avoid this problem, and also automatically clear any
values that are not explicitly set.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I7c24bac3ba6be6732b206406cd74b0d4f8a1f9c2
Reviewed-on: https://review.whamcloud.com/28479
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/niobuf.c