Skip to content

Commit c55e931

Browse files
bglygregkh
authored andcommitted
misc: ibmvsm: Fix wrong assignment of return code
Currently the assignment is flipped and rc is always 0. Signed-off-by: Bryant G. Ly <[email protected]> Fixes: 0eca353 ("misc: IBM Virtual Management Channel Driver (VMC)") Reviewed-by: Bradley Warrum <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent da1b956 commit c55e931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/ibmvmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ static int ibmvmc_init_crq_queue(struct crq_server_adapter *adapter)
21312131
retrc = plpar_hcall_norets(H_REG_CRQ,
21322132
vdev->unit_address,
21332133
queue->msg_token, PAGE_SIZE);
2134-
retrc = rc;
2134+
rc = retrc;
21352135

21362136
if (rc == H_RESOURCE)
21372137
rc = ibmvmc_reset_crq_queue(adapter);

0 commit comments

Comments
 (0)