Skip to content

Commit f00eb5f

Browse files
Colin Ian Kingsuryasaimadhu
authored andcommitted
EDAC/amd64: Remove redundant assignment to variable ret in hw_info_get()
The variable ret is being assigned with a value that is never read and it is being updated later with a new value. The initialization is redundant so remove it. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 1032095 commit f00eb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/amd64_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,7 @@ static const struct attribute_group *amd64_edac_attr_groups[] = {
34033403
static int hw_info_get(struct amd64_pvt *pvt)
34043404
{
34053405
u16 pci_id1, pci_id2;
3406-
int ret = -EINVAL;
3406+
int ret;
34073407

34083408
if (pvt->fam >= 0x17) {
34093409
pvt->umc = kcalloc(fam_type->max_mcs, sizeof(struct amd64_umc), GFP_KERNEL);

0 commit comments

Comments
 (0)