File i2c-tools-r6108-remove-duplicate-ns.diff of Package i2c-tools

Subject: decode-dimms: Remove duplicate "ns" in SDR timings
Upstream: yes, r6108

Remove duplicate "ns" in SDR timings.
---
 eeprom/decode-dimms |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
+++ i2c-tools-3.1.0/eeprom/decode-dimms
@@ -623,7 +623,7 @@ sub decode_sdr_sdram($)
 	my $ctime = ($bytes->[9] >> 4) + ($bytes->[9] & 0xf) * 0.1;
 
 	$trcd = $bytes->[29];
-	$trp = $bytes->[27];;
+	$trp = $bytes->[27];
 	$tras = $bytes->[30];
 
 	printl("tCL-tRCD-tRP-tRAS",
@@ -720,7 +720,6 @@ sub decode_sdr_sdram($)
 		else {
 			$temp += 15 if $temp < 4;
 			$temp += ($bytes->[23] & 0xf) * 0.1;
-			$temp .= " ns";
 		}
 		$cycle_time .= "\n$temp ns at CAS ".$cas[$#cas-1];
 
@@ -729,7 +728,6 @@ sub decode_sdr_sdram($)
 		else {
 			$temp += 15 if $temp < 4;
 			$temp += ($bytes->[24] & 0xf) * 0.1;
-			$temp .= " ns";
 		}
 		$access_time .= "\n$temp ns at CAS ".$cas[$#cas-1];
 	}
@@ -739,7 +737,6 @@ sub decode_sdr_sdram($)
 		if ($temp == 0) { $temp = "Undefined!"; }
 		else {
 			$temp += ($bytes->[25] & 0x3) * 0.25;
-			$temp .= " ns";
 		}
 		$cycle_time .= "\n$temp ns at CAS ".$cas[$#cas-2];
 
@@ -747,7 +744,6 @@ sub decode_sdr_sdram($)
 		if ($temp == 0) { $temp = "Undefined!"; }
 		else {
 			$temp += ($bytes->[26] & 0x3) * 0.25;
-			$temp .= " ns";
 		}
 		$access_time .= "\n$temp ns at CAS ".$cas[$#cas-2];
 	}
openSUSE Build Service is sponsored by