Fix warning of uninitialized variable on some compilers due to

no default case in switch statement.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2290 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Joe Eykholt
2010-09-27 17:18:50 +00:00
parent ea3fae76f6
commit 2ac1c45585

View File

@@ -569,6 +569,7 @@ static void ft_recv_cmd(struct ft_sess *sess, struct fc_seq *sp,
switch (fcp->fc_flags & (FCP_CFL_RDDATA | FCP_CFL_WRDATA)) {
case 0:
default:
data_dir = SCST_DATA_NONE;
break;
case FCP_CFL_RDDATA: