Re: [ovs-dev] [PATCH v2 6/6] netdev-linux: Initialize link speed in error conditions.

2024-05-27 Thread Ilya Maximets
On 5/23/24 21:11, Mike Pattrick wrote: > Clang's static analyzer noted that the output from > netdev_linux_get_speed_locked can be checked even if this function > doesn't set any values. > > Now we always set those values to a sane default in all cases. > > Fixes: 6240c0b4c80e ("netdev: Add

[ovs-dev] [PATCH v2 6/6] netdev-linux: Initialize link speed in error conditions.

2024-05-23 Thread Mike Pattrick
Clang's static analyzer noted that the output from netdev_linux_get_speed_locked can be checked even if this function doesn't set any values. Now we always set those values to a sane default in all cases. Fixes: 6240c0b4c80e ("netdev: Add netdev_get_speed() to netdev API.") Signed-off-by: Mike