Skip to content

Commit 1f6189e

Browse files
Dan CarpenterBorislav Petkov
authored andcommitted
amd64_edac: Cleanup return type of amd64_determine_edac_cap()
Sparse complains that edac_cap was declared as dev_type and we are returning edac_type. Historically, edac_type was correct but since then we have changed it to return a bit field. Signed-off-by: Dan Carpenter <[email protected]> Link: http://lkml.kernel.org/r/20111006063025.GA2615@mwanda Signed-off-by: Borislav Petkov <[email protected]>
1 parent 73ba859 commit 1f6189e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/edac/amd64_edac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,10 +768,10 @@ static int get_channel_from_ecc_syndrome(struct mem_ctl_info *, u16);
768768
* Determine if the DIMMs have ECC enabled. ECC is enabled ONLY if all the DIMMs
769769
* are ECC capable.
770770
*/
771-
static enum edac_type amd64_determine_edac_cap(struct amd64_pvt *pvt)
771+
static unsigned long amd64_determine_edac_cap(struct amd64_pvt *pvt)
772772
{
773773
u8 bit;
774-
enum dev_type edac_cap = EDAC_FLAG_NONE;
774+
unsigned long edac_cap = EDAC_FLAG_NONE;
775775

776776
bit = (boot_cpu_data.x86 > 0xf || pvt->ext_model >= K8_REV_F)
777777
? 19

0 commit comments

Comments
 (0)