David Kershner
1366a3db3d
staging: unisys: visorbus: visorchipset_init clean up gotos
...
Several error paths were not logging a message to s-Par during failure.
Error paths in visorchipset_init() were corrected so that they now all
do proper clean-ups. This made it necessary to move the function
visorchipset_file_cleanup() above visorchipset_init so it can be
referenced.
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:13:51 -07:00
David Binder
2b9bcf81d3
staging: unisys: visorchannel: remove redundant member size
...
Removes size member from the visorchannel struct, since it was
a duplicate of the nbytes member.
Signed-off-by: David Binder <david.binder@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:13:51 -07:00
Tim Sell
dc38082f0f
staging: unisys: visornic: CHECK: Alignment should match open parenthesis
...
Fix 'CHECK: Alignment should match open parenthesis' as recommended by
checkpatch.
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:11:09 -07:00
Tim Sell
a07d7c3858
staging: unisys: visorbus: CHECK: Alignment should match open parenthesis
...
Fix 'CHECK: Alignment should match open parenthesis' as recommended by
checkpatch.
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:11:09 -07:00
Tim Sell
e4feb2f257
staging: unisys: visorbus: 'unsigned' --> 'unsigned int'
...
Fix as recommended by checkpatch.
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:11:09 -07:00
Cihangir Akturk
3726470610
staging: lustre: split error handling code into multiple labels
...
Instead of using a switch-case statement to find out what kind of error
has just happened, split error handling logic into multiple labels and
jump right into the appropriate label to do the error handling. This way
it is easier to follow different code paths. It also looks easy on the
eyes.
Additionally silences the following coccinelle warning:
drivers/staging/lustre/lustre/obdecho/echo_client.c:762:22-27: ERROR: ed
is NULL but dereferenced.
Signed-off-by: Cihangir Akturk <cakturk@gmail.com >
Acked-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:03:27 -07:00
James Simmons
c970b6058b
staging: lustre: selftest: change srpc_state_t to proper enum
...
Turn typedef srpc_state_t to proper enum
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:58 -07:00
James Simmons
fd7a1a3251
staging: lustre: selftest: convert srpc_msg_t to proper struct
...
Turn typedef struct srpc_msg to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:55 -07:00
James Simmons
dcdc7c84fb
staging: lustre: selftest: convert lstcon_batch_t to proper struct
...
Turn typedef lstcon_batch_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
7299d18604
staging: lustre: selftest: convert lstcon_tsb_hdr_t to proper struct
...
Turn typedef lstcon_tsb_hdr_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
6bd88c7ad4
staging: lustre: selftest: convert lstcon_group_t to proper struct
...
Turn typedef lstcon_group_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
e00f978ef5
staging: lustre: selftest: convert lstcon_ndlink_t to proper struct
...
Turn typedef lstcon_ndlink_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
f1e34162fe
staging: lustre: selftest: convert lstcon_node_t to proper struct
...
Turn typedef lstcon_node_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
d8742c855b
staging: lustre: selftest: convert lstcon_rpc_trans_t to proper struct
...
Turn typedef lstcon_rpc_trans_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
dc4f95fa59
staging: lustre: selftest: convert lstcon_rpc_t to proper struct
...
Turn typedef lstcon_rpc_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
d6615d1430
staging: lustre: selftest: convert sfw_test_case_t to proper struct
...
Turn typedef sfw_test_case_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
d875b0ce5f
staging: lustre: selftest: convert sfw_test_unit_t to proper struct
...
Turn typedef sfw_test_unit_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
7ca48d8585
staging: lustre: selftest: convert sfw_test_instance_t to proper struct
...
Turn typedef sfw_test_instance_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:01:20 -07:00
James Simmons
d9c460ea76
staging: lustre: selftest: convert sfw_test_client_ops_t to proper struct
...
Turn typedef sfw_test_client_ops_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00
James Simmons
074bca9664
staging: lustre: selftest: convert sfw_batch_t to proper struct
...
Turn typedef sfw_batch_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00
James Simmons
693d26648a
staging: lustre: selftest: convert sfw_session_t to proper struct
...
Turn typedef sfw_session_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00
James Simmons
682513b863
staging: lustre: selftest: convert srpc_service_t to proper struct
...
Turn typedef srpc_service_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00
James Simmons
20234da542
staging: lustre: selftest: convert srpc_client_rpc_t to proper struct
...
Turn typedef srpc_client_rpc_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00
James Simmons
25a9ca5202
staging: lustre: selftest: convert swi_workitem_t to proper struct
...
Turn typedef swi_workitem_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00
James Simmons
4b064e9528
staging: lustre: selftest: convert srpc_buffer_t to proper struct
...
Turn typedef srpc_buffer_t to proper structure
Signed-off-by: James Simmons <uja.ornl@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-04-11 21:00:56 -07:00