diff options
author | 2015-07-15 17:52:23 +0000 | |
---|---|---|
committer | 2015-07-15 17:52:23 +0000 | |
commit | e22b0c746df273b12dc8a937a6e9c54c065ba64d (patch) | |
tree | 3eaa0da789f940e68a47f2f858a6d8df5111a2ba /lib | |
parent | Fix urtw(4) error code paths to not panic the kernel. Makes the driver work (diff) | |
download | wireguard-openbsd-e22b0c746df273b12dc8a937a6e9c54c065ba64d.tar.xz wireguard-openbsd-e22b0c746df273b12dc8a937a6e9c54c065ba64d.zip |
Simplify the error path of the previous commit: by using ret = -1 by
default and only setting it to 0 on success, we don't have to set it
in each error case. While here, also remove two superfluous NULL
checks (as pointed out by semarie).
OK semarie@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions