diff options
author | mjacob <mjacob@FreeBSD.org> | 2006-08-14 05:35:41 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2006-08-14 05:35:41 +0000 |
commit | a1c57a399600661917075b91496f457d2f3c0acc (patch) | |
tree | ca0ebf3040e6c96c8d2463c9be459aea679b5199 /sys/dev/isp | |
parent | 297f53342b73885fd27db30f6852e67f9a6c293a (diff) | |
download | FreeBSD-src-a1c57a399600661917075b91496f457d2f3c0acc.zip FreeBSD-src-a1c57a399600661917075b91496f457d2f3c0acc.tar.gz |
The macro IS_23XX should not mistakenly include 24XX cards.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/ispvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index 59a7cd0..5ea8e8a 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) |