Loading drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h +2 −4 Original line number Original line Diff line number Diff line Loading @@ -48,10 +48,8 @@ void nvkm_timer_alarm_cancel(struct nvkm_timer *, struct nvkm_alarm *); } while (_taken = nvkm_timer_read(_tmr) - _time0, _taken < _nsecs); \ } while (_taken = nvkm_timer_read(_tmr) - _time0, _taken < _nsecs); \ \ \ if (_taken >= _nsecs) { \ if (_taken >= _nsecs) { \ if (_warn) { \ if (_warn) \ dev_warn(_device->dev, "timeout at %s:%d/%s()!\n", \ dev_WARN(_device->dev, "timeout\n"); \ __FILE__, __LINE__, __func__); \ } \ _taken = -ETIMEDOUT; \ _taken = -ETIMEDOUT; \ } \ } \ _taken; \ _taken; \ Loading Loading
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h +2 −4 Original line number Original line Diff line number Diff line Loading @@ -48,10 +48,8 @@ void nvkm_timer_alarm_cancel(struct nvkm_timer *, struct nvkm_alarm *); } while (_taken = nvkm_timer_read(_tmr) - _time0, _taken < _nsecs); \ } while (_taken = nvkm_timer_read(_tmr) - _time0, _taken < _nsecs); \ \ \ if (_taken >= _nsecs) { \ if (_taken >= _nsecs) { \ if (_warn) { \ if (_warn) \ dev_warn(_device->dev, "timeout at %s:%d/%s()!\n", \ dev_WARN(_device->dev, "timeout\n"); \ __FILE__, __LINE__, __func__); \ } \ _taken = -ETIMEDOUT; \ _taken = -ETIMEDOUT; \ } \ } \ _taken; \ _taken; \ Loading