Skip to content

Commit 5c7bfa1

Browse files
mjruhlij-intel
authored andcommitted
platform/x86/intel/pmt: correct types
A couple of local variables do not match the return types of some of the functions. Update the mismatched types to match. Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: David E. Box <[email protected]> Signed-off-by: Michael J. Ruhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 147c18d commit 5c7bfa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/intel/pmt/crashlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static ssize_t
138138
enable_show(struct device *dev, struct device_attribute *attr, char *buf)
139139
{
140140
struct intel_pmt_entry *entry = dev_get_drvdata(dev);
141-
int enabled = !pmt_crashlog_disabled(entry);
141+
bool enabled = !pmt_crashlog_disabled(entry);
142142

143143
return sprintf(buf, "%d\n", enabled);
144144
}
@@ -169,7 +169,7 @@ static ssize_t
169169
trigger_show(struct device *dev, struct device_attribute *attr, char *buf)
170170
{
171171
struct intel_pmt_entry *entry;
172-
int trigger;
172+
bool trigger;
173173

174174
entry = dev_get_drvdata(dev);
175175
trigger = pmt_crashlog_complete(entry);

0 commit comments

Comments
 (0)