[PATCH 9/9] filter/HWHDR: remove redundant sizeof(char)

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

 



It is 1 by definition.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 filter/ulogd_filter_HWHDR.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/filter/ulogd_filter_HWHDR.c b/filter/ulogd_filter_HWHDR.c
index 0e3f627..3b713a5 100644
--- a/filter/ulogd_filter_HWHDR.c
+++ b/filter/ulogd_filter_HWHDR.c
@@ -118,7 +118,7 @@ static int parse_mac2str(struct ulogd_key *ret, unsigned char *mac,
 	char *buf_cur;
 	int i;
 
-	if (len/sizeof(char)*3 + 1 > HWADDR_LENGTH)
+	if (len * 3 + 1 > HWADDR_LENGTH)
 		return ULOGD_IRET_ERR;
 
 	if (len == 0)
-- 
1.7.1

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


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux