ring: check return value of setsockopt

If something screws up, which is rather unlikely, but if it happens,
let the user know.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
xutils: check various return values

Check various setsockopt return values and exit accordingly if some
of them just fuck up.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
flowtop: rcu: omit rcu_assign_pointer

If the new pointer is NULL anyway, this results in a constant expression
during compile time (NULL != NULL) where a barrier is left out. Thus, it
will have no different effect using rcu_assign_pointer() than assigning
it directly.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
misc: remove dead/unreachable code from switch statements

Remove various unreachable sections from the switch statements. This
was detected by the coverty scanner.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>