]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-ipv4ll: do not assert_return when seed == 0
authorRonny Chevalier <chevalier.ronny@gmail.com>
Mon, 21 Sep 2015 14:51:31 +0000 (16:51 +0200)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Mon, 21 Sep 2015 14:52:52 +0000 (16:52 +0200)
Now that seed is an unsigned and not an array, we do not need to assert
on it.

src/libsystemd-network/sd-ipv4ll.c

index f0230b919c431b0d43c810a5a75cf35c8cc4d26b..f065e3e3e0c7ff61126245db75a8434a16560bfa 100644 (file)
@@ -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)