changeset 4903:2a001af002fe draft

DHCP: dl is always >0 at this point, so remove check. Found by the LGTM bot.
author Roy Marples <roy@marples.name>
date Sat, 07 Dec 2019 17:06:18 +0000
parents 704bd2f6cd4a
children 54922ff09805
files src/dhcp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcp.c	Wed Dec 11 16:09:18 2019 +0000
+++ b/src/dhcp.c	Sat Dec 07 17:06:18 2019 +0000
@@ -489,7 +489,7 @@
 			return -1;
 		break;
 	case 1:
-		if (dl == 0 || dl % 4 != 0) {
+		if (dl % 4 != 0) {
 			errno = EINVAL;
 			break;
 		}