Drop the fatal flag now that every failed check is fatal

This commit is contained in:
flamingcow
2026-08-04 13:33:08 -07:00
parent 39c27166dc
commit f5a6420cfa
3 changed files with 8 additions and 33 deletions
-3
View File
@@ -40,7 +40,6 @@ func checkTimestamping(fd int, ifname string) checkResult {
var have hwtstampConfig
if err := hwtstampCall(unix.SIOCGHWTSTAMP, &have); err != nil {
res.err = err
res.fatal = true
return res
}
if have.txType == hwtstampTxOn && have.rxFilter == hwtstampFilterAll {
@@ -54,12 +53,10 @@ func checkTimestamping(fd int, ifname string) checkResult {
if err := hwtstampCall(unix.SIOCSHWTSTAMP, &want); err != nil {
res.err = err
res.state = "could not set"
res.fatal = true
return res
}
if want.txType != hwtstampTxOn || want.rxFilter != hwtstampFilterAll {
res.err = fmt.Errorf("driver applied %s instead", desc(want))
res.fatal = true
return res
}
res.fixed = true