Skip to content

Commit 82f6352

Browse files
BenjaminGrayNp1mpe
authored andcommitted
powerpc/eeh: Remove unnecessary cast
Sparse reports a warning when casting to an int. There is no need to cast in the first place, so drop them. Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231011053711.93427-12-bgray@linux.ibm.com
1 parent 2c4ce3e commit 82f6352

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/powerpc/kernel/eeh_driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static int eeh_result_priority(enum pci_ers_result result)
3939
case PCI_ERS_RESULT_NEED_RESET:
4040
return 6;
4141
default:
42-
WARN_ONCE(1, "Unknown pci_ers_result value: %d\n", (int)result);
42+
WARN_ONCE(1, "Unknown pci_ers_result value: %d\n", result);
4343
return 0;
4444
}
4545
};
@@ -60,7 +60,7 @@ static const char *pci_ers_result_name(enum pci_ers_result result)
6060
case PCI_ERS_RESULT_NO_AER_DRIVER:
6161
return "no AER driver";
6262
default:
63-
WARN_ONCE(1, "Unknown result type: %d\n", (int)result);
63+
WARN_ONCE(1, "Unknown result type: %d\n", result);
6464
return "unknown";
6565
}
6666
};

0 commit comments

Comments
 (0)