Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae0f1e64 authored by Thomas Huth's avatar Thomas Huth Committed by Jiri Kosina
Browse files

scsi/qla2xxx: Remove erroneous unused macro qla82xx_get_temp_val1()



That macros uses logical "&&" instead of bit-wise "&" which is
apparently wrong. Since the macro is completely unused, simply
remove it, so that nobody can accidentially use it anymore.

Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 16bf8348
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1183,7 +1183,6 @@ static const int MD_MIU_TEST_AGT_RDDATA[] = { 0x410000A8, 0x410000AC,
#define CRB_NIU_XG_PAUSE_CTL_P1        0x8
#define CRB_NIU_XG_PAUSE_CTL_P1        0x8


#define qla82xx_get_temp_val(x)          ((x) >> 16)
#define qla82xx_get_temp_val(x)          ((x) >> 16)
#define qla82xx_get_temp_val1(x)          ((x) && 0x0000FFFF)
#define qla82xx_get_temp_state(x)        ((x) & 0xffff)
#define qla82xx_get_temp_state(x)        ((x) & 0xffff)
#define qla82xx_encode_temp(val, state)  (((val) << 16) | (state))
#define qla82xx_encode_temp(val, state)  (((val) << 16) | (state))