From e92f8e40444bc5332a24f7d58f89bf784fcea761 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 17 Jul 2009 10:55:44 +0000 Subject: [PATCH] Merge of r947: Removed trailing whitespace. and r952: On ppc64, gcc 4.4 spews lots of.. drivers/scsi/qla2xxx/qla_def.h:1485:7: warning: "__LITTLE_ENDIAN" is not defined Signed-off-by: Dave Jones git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@960 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/nthread.c | 2 +- qla2x00t/qla_def.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 65ec1c6d0..248e8b5bc 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -1353,7 +1353,7 @@ out_err: (long long unsigned int)conn->session->sid, conn->cid, conn->write_cmnd); } - if (ref_cmd_to_parent && + if (ref_cmd_to_parent && ((ref_cmd->scst_cmd != NULL) || (ref_cmd->scst_aen != NULL))) { if (ref_cmd->scst_state == ISCSI_CMD_STATE_AEN) scst_set_aen_delivery_status(ref_cmd->scst_aen, diff --git a/qla2x00t/qla_def.h b/qla2x00t/qla_def.h index 7bea425ad..b160f917f 100644 --- a/qla2x00t/qla_def.h +++ b/qla2x00t/qla_def.h @@ -1485,7 +1485,7 @@ typedef union { uint8_t domain; uint8_t area; uint8_t al_pa; -#elif __LITTLE_ENDIAN +#elif defined(__LITTLE_ENDIAN) uint8_t al_pa; uint8_t area; uint8_t domain;