[PATCH 14/15] ssc: fix SPACE count field calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
---
 usr/bs_ssc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index a7084d0..a502b32 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -61,7 +61,7 @@ static int32_t be24_to_2comp(uint8_t *c)
 {
 	int count;
 	count = (c[0] << 16) | (c[1] << 8) | c[2];
-	if (c[1] & 0x80)
+	if (c[0] & 0x80)
 		count += (0xff << 24);
 	return count;
 }
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux