Skip to content

Commit

Permalink
thermal: Use bool function return values of true/false not 1/0
Browse files Browse the repository at this point in the history
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Joe Perches authored and Zhang Rui committed May 1, 2015
1 parent b787f68 commit ce1d949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/thermal_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz)
static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz,
int trip)
{
return 0;
return false;
}
static inline const struct thermal_trip *
of_thermal_get_trip_points(struct thermal_zone_device *tz)
Expand Down

0 comments on commit ce1d949

Please sign in to comment.