> -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf > Of Tom St Denis > Sent: Tuesday, September 12, 2017 10:47 AM > To: amd-gfx at lists.freedesktop.org > Cc: StDenis, Tom > Subject: [PATCH 2/6] drm/amd/powerplay: Tidy up > smu7_fan_ctrl_get_fan_speed_rpm() > > Signed-off-by: Tom St Denis <tom.stdenis at amd.com> > --- > drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c > b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c > index a491f1201fda..0c822ef7d907 100644 > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c > @@ -86,8 +86,7 @@ int smu7_fan_ctrl_get_fan_speed_rpm(struct > pp_hwmgr *hwmgr, uint32_t *speed) > uint32_t crystal_clock_freq; > > if (hwmgr->thermal_controller.fanInfo.bNoFan || > - (hwmgr->thermal_controller.fanInfo. > - ucTachometerPulsesPerRevolution == 0)) > + !hwmgr->thermal_controller.fanInfo. > ucTachometerPulsesPerRevolution) Can you fix the whitespace here? Alex > return -ENODEV; > > tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, > CGS_IND_REG__SMC, > -- > 2.12.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx