From: Ronny Chevalier Date: Mon, 21 Sep 2015 14:51:31 +0000 (+0200) Subject: sd-ipv4ll: do not assert_return when seed == 0 X-Git-Tag: v227~112^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56065db4214a62a4d9ed4465333fcded35322aa8;p=thirdparty%2Fsystemd.git sd-ipv4ll: do not assert_return when seed == 0 Now that seed is an unsigned and not an array, we do not need to assert on it. --- diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c index f0230b919c4..f065e3e3e0c 100644 --- a/src/libsystemd-network/sd-ipv4ll.c +++ b/src/libsystemd-network/sd-ipv4ll.c @@ -202,7 +202,6 @@ int sd_ipv4ll_set_address_seed(sd_ipv4ll *ll, unsigned seed) { int r; assert_return(ll, -EINVAL); - assert_return(seed, -EINVAL); random_data = new0(struct random_data, 1); if (!random_data)