cifs: remove checks for ses->status == CifsExiting

ses->status is never set to CifsExiting, so these checks are
always false.

Tested-by: JG <jg@cms.ac>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

authored by Jeff Layton and committed by Steve French d402539b 8132b65b

+1 -4
+1 -4
fs/cifs/cifssmb.c
··· 136 } 137 } 138 139 - if (ses->status == CifsExiting) 140 - return -EIO; 141 - 142 /* 143 * Give demultiplex thread up to 10 seconds to reconnect, should be 144 * greater than cifs socket timeout which is 7 seconds ··· 153 * retrying until process is killed or server comes 154 * back on-line 155 */ 156 - if (!tcon->retry || ses->status == CifsExiting) { 157 cFYI(1, "gave up waiting on reconnect in smb_init"); 158 return -EHOSTDOWN; 159 }
··· 136 } 137 } 138 139 /* 140 * Give demultiplex thread up to 10 seconds to reconnect, should be 141 * greater than cifs socket timeout which is 7 seconds ··· 156 * retrying until process is killed or server comes 157 * back on-line 158 */ 159 + if (!tcon->retry) { 160 cFYI(1, "gave up waiting on reconnect in smb_init"); 161 return -EHOSTDOWN; 162 }