Cleanup mgmt parameters initialization.

It's better to do it via a single function.

Patch from Alexey Obitotskiy <alexeyo1@open-e.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-03-23 22:03:22 +00:00
parent 937b2d550d
commit d5ffb2234b
3 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -505,7 +505,8 @@ static void ft_recv_tm(struct scst_session *scst_sess,
struct scst_rx_mgmt_params params;
int ret;
memset(&params, 0, sizeof(params));
scst_rx_mgmt_params_init(&params);
params.lun = fcp->fc_lun;
params.lun_len = sizeof(fcp->fc_lun);
params.lun_set = 1;