Commit 57a3548a authored by Chad Dupuis's avatar Chad Dupuis Committed by Martin K. Petersen
Browse files

scsi: qedf: Fixup unnecessary parantheses around test_bit operations.

parent 384d5a9b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ static int qedf_initiate_els(struct qedf_rport *fcport, unsigned int op,
		goto els_err;
	}

	if (!(test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags))) {
	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
		QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: fcport not ready\n", op);
		rc = -EINVAL;
		goto els_err;
@@ -225,7 +225,7 @@ int qedf_send_rrq(struct qedf_ioreq *aborted_io_req)
	fcport = aborted_io_req->fcport;

	/* Check that fcport is still offloaded */
	if (!(test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags))) {
	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
		QEDF_ERR(NULL, "fcport is no longer offloaded.\n");
		return -EINVAL;
	}
@@ -550,7 +550,7 @@ static int qedf_send_srr(struct qedf_ioreq *orig_io_req, u32 offset, u8 r_ctl)
	fcport = orig_io_req->fcport;

	/* Check that fcport is still offloaded */
	if (!(test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags))) {
	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
		QEDF_ERR(NULL, "fcport is no longer offloaded.\n");
		return -EINVAL;
	}
+1 −1
Original line number Diff line number Diff line
@@ -1847,7 +1847,7 @@ static int qedf_execute_tmf(struct qedf_rport *fcport, struct scsi_cmnd *sc_cmd,
		return FAILED;
	}

	if (!(test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags))) {
	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
		QEDF_ERR(&(qedf->dbg_ctx), "fcport not offloaded\n");
		rc = FAILED;
		return FAILED;