diff mbox

dmi: dmicheck: add comments for obsolete types

Message ID 1493962263-25863-1-git-send-email-alex.hung@canonical.com
State Accepted
Headers show

Commit Message

Alex Hung May 5, 2017, 5:31 a.m. UTC
Type 5, 6 and 10 are obsolete. Add comments to dmicheck.c so it
is known that no future work is required for them.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/dmi/dmicheck/dmicheck.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Colin Ian King May 5, 2017, 2:45 p.m. UTC | #1
On 05/05/17 06:31, Alex Hung wrote:
> Type 5, 6 and 10 are obsolete. Add comments to dmicheck.c so it
> is known that no future work is required for them.
> 
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/dmi/dmicheck/dmicheck.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
> index 1fe6cf0..77bfda6 100644
> --- a/src/dmi/dmicheck/dmicheck.c
> +++ b/src/dmi/dmicheck/dmicheck.c
> @@ -1122,7 +1122,7 @@ static void dmicheck_entry(fwts_framework *fw,
>  					table, addr, "Processor Characteristics", 0x26);
>  			break;
>  
> -		case 5: /* 7.6 */
> +		case 5: /* 7.6 (Type 5 is obsolete) */
>  			table = "Memory Controller Information (Type 5)";
>  			if (hdr->length < 0x0f)
>  				break;
> @@ -1131,7 +1131,7 @@ static void dmicheck_entry(fwts_framework *fw,
>  			dmi_min_max_uint8_check(fw, table, addr, "Current Interleave", hdr, 0x7, 0x1, 0x7);
>  			break;
>  
> -		case 6: /* 7.7 */
> +		case 6: /* 7.7 (Type 6 is obsolete) */
>  			table = "Memory Module Information (Type 6)";
>  			if (hdr->length < 0x0c)
>  				break;
> @@ -1221,7 +1221,7 @@ static void dmicheck_entry(fwts_framework *fw,
>  					table, addr, "Slot Characteristics 2", 0xc);
>  			break;
>  
> -		case 10: /* 7.11 */
> +		case 10: /* 7.11 (Type 10 is obsolete) */
>  			table = "On Board Devices (Type 10)";
>  			count = (hdr->length - 4) / 2;
>  			for (i = 0; i < count; i++) {
> 
Thanks Alex,

Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu May 10, 2017, 8:17 a.m. UTC | #2
On 05/05/2017 01:31 PM, Alex Hung wrote:
> Type 5, 6 and 10 are obsolete. Add comments to dmicheck.c so it
> is known that no future work is required for them.
>
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/dmi/dmicheck/dmicheck.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
> index 1fe6cf0..77bfda6 100644
> --- a/src/dmi/dmicheck/dmicheck.c
> +++ b/src/dmi/dmicheck/dmicheck.c
> @@ -1122,7 +1122,7 @@ static void dmicheck_entry(fwts_framework *fw,
>  					table, addr, "Processor Characteristics", 0x26);
>  			break;
>
> -		case 5: /* 7.6 */
> +		case 5: /* 7.6 (Type 5 is obsolete) */
>  			table = "Memory Controller Information (Type 5)";
>  			if (hdr->length < 0x0f)
>  				break;
> @@ -1131,7 +1131,7 @@ static void dmicheck_entry(fwts_framework *fw,
>  			dmi_min_max_uint8_check(fw, table, addr, "Current Interleave", hdr, 0x7, 0x1, 0x7);
>  			break;
>
> -		case 6: /* 7.7 */
> +		case 6: /* 7.7 (Type 6 is obsolete) */
>  			table = "Memory Module Information (Type 6)";
>  			if (hdr->length < 0x0c)
>  				break;
> @@ -1221,7 +1221,7 @@ static void dmicheck_entry(fwts_framework *fw,
>  					table, addr, "Slot Characteristics 2", 0xc);
>  			break;
>
> -		case 10: /* 7.11 */
> +		case 10: /* 7.11 (Type 10 is obsolete) */
>  			table = "On Board Devices (Type 10)";
>  			count = (hdr->length - 4) / 2;
>  			for (i = 0; i < count; i++) {
>


Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox

Patch

diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
index 1fe6cf0..77bfda6 100644
--- a/src/dmi/dmicheck/dmicheck.c
+++ b/src/dmi/dmicheck/dmicheck.c
@@ -1122,7 +1122,7 @@  static void dmicheck_entry(fwts_framework *fw,
 					table, addr, "Processor Characteristics", 0x26);
 			break;
 
-		case 5: /* 7.6 */
+		case 5: /* 7.6 (Type 5 is obsolete) */
 			table = "Memory Controller Information (Type 5)";
 			if (hdr->length < 0x0f)
 				break;
@@ -1131,7 +1131,7 @@  static void dmicheck_entry(fwts_framework *fw,
 			dmi_min_max_uint8_check(fw, table, addr, "Current Interleave", hdr, 0x7, 0x1, 0x7);
 			break;
 
-		case 6: /* 7.7 */
+		case 6: /* 7.7 (Type 6 is obsolete) */
 			table = "Memory Module Information (Type 6)";
 			if (hdr->length < 0x0c)
 				break;
@@ -1221,7 +1221,7 @@  static void dmicheck_entry(fwts_framework *fw,
 					table, addr, "Slot Characteristics 2", 0xc);
 			break;
 
-		case 10: /* 7.11 */
+		case 10: /* 7.11 (Type 10 is obsolete) */
 			table = "On Board Devices (Type 10)";
 			count = (hdr->length - 4) / 2;
 			for (i = 0; i < count; i++) {