thermal: int340x_thermal: Consolidate priv->data_vault checks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Aug 2022 18:33:37 +0000 (20:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 3 Sep 2022 18:23:07 +0000 (20:23 +0200)
commite9a7c526c29b0ae60c888b335bd6cf6e2ee80154
treeaf94774c3072ccaac44854623947d11967ff5fb8
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
thermal: int340x_thermal: Consolidate priv->data_vault checks

It is sufficient to check priv->data_vault once in the error code path
of int3400_thermal_probe(), so do that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c