Drop the fatal flag now that every failed check is fatal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user