From 6322f5abb724a48aceec8aec2a37720dafa18ac5 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 14 Aug 2006 05:35:41 +0000 Subject: [PATCH] The macro IS_23XX should not mistakenly include 24XX cards. --- sys/dev/isp/ispvar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index 59a7cd0d670c..5ea8e8a7c415 100644 --- a/sys/dev/isp/ispvar.h +++ b/sys/dev/isp/ispvar.h @@ -557,7 +557,8 @@ struct ispsoftc { #define IS_FC(isp) ((isp)->isp_type & ISP_HA_FC) #define IS_2100(isp) ((isp)->isp_type == ISP_HA_FC_2100) #define IS_2200(isp) ((isp)->isp_type == ISP_HA_FC_2200) -#define IS_23XX(isp) ((isp)->isp_type >= ISP_HA_FC_2300) +#define IS_23XX(isp) \ + ((isp)->isp_type >= ISP_HA_FC_2300 && (isp)->isp_type < ISP_HA_FC_2400) #define IS_2300(isp) ((isp)->isp_type == ISP_HA_FC_2300) #define IS_2312(isp) ((isp)->isp_type == ISP_HA_FC_2312) #define IS_2322(isp) ((isp)->isp_type == ISP_HA_FC_2322)