Skip to content

Commit 651d6a3

Browse files
maass-hamburgkartben
authored andcommitted
net: dhcpv4: remove redundant dependencys
Remove ``depends on NET_DHCPV4`` on options, that are inside a ``if NET_DHCPV4``. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 8b2d02d commit 651d6a3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

subsys/net/lib/dhcpv4/Kconfig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ source "subsys/net/Kconfig.template.log_config.net"
2222

2323
config NET_DHCPV4_INITIAL_DELAY_MAX
2424
int "Maximum time out for initial discover request"
25-
depends on NET_DHCPV4
2625
default 10
2726
range 2 10
2827
help
@@ -31,15 +30,14 @@ config NET_DHCPV4_INITIAL_DELAY_MAX
3130

3231
config NET_DHCPV4_OPTION_CALLBACKS
3332
bool "Option callbacks"
34-
depends on NET_DHCPV4
3533
help
3634
If set, custom callbacks for arbitrary DHCP options
3735
can be added. These can be used to support otherwise
3836
DHCP options not used by the rest of the system.
3937

4038
config NET_DHCPV4_MAX_REQUESTED_OPTIONS
4139
int "Maximum number of requested options"
42-
depends on NET_DHCPV4 && NET_DHCPV4_OPTION_CALLBACKS
40+
depends on NET_DHCPV4_OPTION_CALLBACKS
4341
default 10
4442
range 3 $(UINT8_MAX)
4543
help
@@ -49,23 +47,20 @@ config NET_DHCPV4_MAX_REQUESTED_OPTIONS
4947

5048
config NET_DHCPV4_OPTION_CALLBACKS_VENDOR_SPECIFIC
5149
bool "Encapsulated vendor specific option callbacks"
52-
depends on NET_DHCPV4
5350
select NET_DHCPV4_OPTION_CALLBACKS
5451
help
5552
If set, custom callbacks for encapsulated vendor-specific
5653
information in DHCP option 43 can be added.
5754

5855
config NET_DHCPV4_ACCEPT_UNICAST
5956
bool "Accept unicast DHCPv4 traffic"
60-
depends on NET_DHCPV4
6157
default y
6258
help
6359
If set, the network stack will accept unicast DHCPv4 responses from
6460
servers, before the assigned address is configured on the interface.
6561

6662
config NET_DHCPV4_VENDOR_CLASS_IDENTIFIER
6763
bool "Send vendor class identifier in DHCPv4 request"
68-
depends on NET_DHCPV4
6964
help
7065
If set, the network stack will include the specified string in the
7166
DHCPv4 vendor class identifier option in the DHCPv4 request.

0 commit comments

Comments
 (0)