Skip to content

Commit

Permalink
staging: qlge: Remove unnecessary parentheses around references
Browse files Browse the repository at this point in the history
This patch fixes checkpatch.pl warning:

CHECK: Unnecessary parentheses around mpi_coredump->mpi_global_header

Signed-off-by: Nishal Kulkarni <nishalkulkarni@gmail.com>
Link: https://lore.kernel.org/r/YNcPzWXkKkmip95x@nishal-pc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Nishal Kulkarni authored and Greg Kroah-Hartman committed Jul 21, 2021
1 parent 1126df7 commit a0d38df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/qlge/qlge_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ int qlge_core_dump(struct qlge_adapter *qdev, struct qlge_mpi_coredump *mpi_core
}

/* Insert the global header */
memset(&(mpi_coredump->mpi_global_header), 0,
memset(&mpi_coredump->mpi_global_header, 0,
sizeof(struct mpi_coredump_global_header));
mpi_coredump->mpi_global_header.cookie = MPI_COREDUMP_COOKIE;
mpi_coredump->mpi_global_header.header_size =
Expand Down Expand Up @@ -1221,7 +1221,7 @@ static void qlge_gen_reg_dump(struct qlge_adapter *qdev,
{
int i, status;

memset(&(mpi_coredump->mpi_global_header), 0,
memset(&mpi_coredump->mpi_global_header, 0,
sizeof(struct mpi_coredump_global_header));
mpi_coredump->mpi_global_header.cookie = MPI_COREDUMP_COOKIE;
mpi_coredump->mpi_global_header.header_size =
Expand Down

0 comments on commit a0d38df

Please sign in to comment.