RDMA/rxe: Fix a typo in opcode name
authorChengguang Xu <cgxu519@mykernel.net>
Sat, 18 Dec 2021 11:23:20 +0000 (19:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 07:47:41 +0000 (08:47 +0100)
commit 8d1cfb884e881efd69a3be4ef10772c71cb22216 upstream.

There is a redundant ']' in the name of opcode IB_OPCODE_RC_SEND_MIDDLE,
so just fix it.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20211218112320.3558770-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Acked-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/sw/rxe/rxe_opcode.c

index 61927c165b598af92e572bbc9ce9bbad2b6ecb32..e67ed9141cd8ae02a401711568a50e5aa014179a 100644 (file)
@@ -137,7 +137,7 @@ struct rxe_opcode_info rxe_opcode[RXE_NUM_OPCODE] = {
                }
        },
        [IB_OPCODE_RC_SEND_MIDDLE]              = {
-               .name   = "IB_OPCODE_RC_SEND_MIDDLE]",
+               .name   = "IB_OPCODE_RC_SEND_MIDDLE",
                .mask   = RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_SEND_MASK
                                | RXE_MIDDLE_MASK,
                .length = RXE_BTH_BYTES,