iscsi: remove pointless comparasion
Change-Id: I343d2f1a8f3327ad030a786633bbe9e8c66c14fc Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/394138 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ziye Yang <optimistyzy@gmail.com> Reviewed-by: <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
a1a47b5592
commit
9802eb0e48
@ -1308,7 +1308,7 @@ spdk_iscsi_conn_flush_pdus(struct spdk_iscsi_conn *conn)
|
||||
* empty - to make sure all data is sent before
|
||||
* closing the connection.
|
||||
*/
|
||||
while (!TAILQ_EMPTY(&conn->write_pdu_list) > 0) {
|
||||
while (!TAILQ_EMPTY(&conn->write_pdu_list)) {
|
||||
rc = spdk_iscsi_conn_flush_pdus_internal(conn);
|
||||
if (rc != 0) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user