* [linux-safety] [PATCH] staging: qlge: Remove unnecessary parentheses
@ 2020-11-24 16:30 Milan Lakhani
0 siblings, 0 replies; 3+ messages in thread
From: Milan Lakhani @ 2020-11-24 16:30 UTC (permalink / raw)
To: devel, linux-kernel, linux-safety; +Cc: Milan Lakhani
There were some redundant brackets in qlge_dbg.c. Reported by
checkpatch.
Signed-off-by: Milan Lakhani <milan.lakhani@codethink.co.uk>
---
drivers/staging/qlge/qlge_dbg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c
index 42fd139..2ed5f32 100644
--- a/drivers/staging/qlge/qlge_dbg.c
+++ b/drivers/staging/qlge/qlge_dbg.c
@@ -734,7 +734,7 @@ int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump)
}
/* 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 =
@@ -1222,7 +1222,7 @@ static void ql_gen_reg_dump(struct ql_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 =
--
2.7.4
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201): https://lists.elisa.tech/g/linux-safety/message/201
Mute This Topic: https://lists.elisa.tech/mt/78480700/5278000
Group Owner: linux-safety+owner@lists.elisa.tech
Unsubscribe: https://lists.elisa.tech/g/linux-safety/unsub [linux-safety@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-safety] [PATCH] staging: qlge: Remove unnecessary parentheses
@ 2020-11-24 17:02 Milan Lakhani
0 siblings, 0 replies; 3+ messages in thread
From: Milan Lakhani @ 2020-11-24 17:02 UTC (permalink / raw)
To: gregkh, devel, linux-kernel, linux-safety; +Cc: Milan Lakhani
There were some redundant brackets in qlge_dbg.c. Reported by
checkpatch.
Signed-off-by: Milan Lakhani <milan.lakhani@codethink.co.uk>
---
drivers/staging/qlge/qlge_dbg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c
index 42fd139..2ed5f32 100644
--- a/drivers/staging/qlge/qlge_dbg.c
+++ b/drivers/staging/qlge/qlge_dbg.c
@@ -734,7 +734,7 @@ int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump)
}
/* 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 =
@@ -1222,7 +1222,7 @@ static void ql_gen_reg_dump(struct ql_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 =
--
2.7.4
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#206): https://lists.elisa.tech/g/linux-safety/message/206
Mute This Topic: https://lists.elisa.tech/mt/78480700/5278000
Group Owner: linux-safety+owner@lists.elisa.tech
Unsubscribe: https://lists.elisa.tech/g/linux-safety/unsub [linux-safety@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-safety] [PATCH] staging: qlge: Remove unnecessary parentheses
@ 2020-11-17 15:32 Milan Lakhani
0 siblings, 0 replies; 3+ messages in thread
From: Milan Lakhani @ 2020-11-17 15:32 UTC (permalink / raw)
To: manishc
Cc: Milan Lakhani, GR-Linux-NIC-Dev, Greg Kroah-Hartman,
linux-kernel, linux-safety
There were some redundant brackets in qlge_dbg.c. Reported by
checkpatch.
CC: GR-Linux-NIC-Dev@marvell.com
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: linux-kernel@vger.kernel.org
CC: linux-safety@lists.elisa.tech
Signed-off-by: Milan Lakhani <milan.lakhani@codethink.co.uk>
---
drivers/staging/qlge/qlge_dbg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c
index 42fd139..2ed5f32 100644
--- a/drivers/staging/qlge/qlge_dbg.c
+++ b/drivers/staging/qlge/qlge_dbg.c
@@ -734,7 +734,7 @@ int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump)
}
/* 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 =
@@ -1222,7 +1222,7 @@ static void ql_gen_reg_dump(struct ql_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 =
--
2.7.4
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174): https://lists.elisa.tech/g/linux-safety/message/174
Mute This Topic: https://lists.elisa.tech/mt/78318204/5278000
Group Owner: linux-safety+owner@lists.elisa.tech
Unsubscribe: https://lists.elisa.tech/g/linux-safety/unsub [linux-safety@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, back to index
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 16:30 [linux-safety] [PATCH] staging: qlge: Remove unnecessary parentheses Milan Lakhani
-- strict thread matches above, loose matches on Subject: below --
2020-11-24 17:02 Milan Lakhani
2020-11-17 15:32 Milan Lakhani
Linux-Safety Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-safety/0 linux-safety/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-safety linux-safety/ https://lore.kernel.org/linux-safety \
linux-safety@lists.elisa.tech
public-inbox-index linux-safety
Example config snippet for mirrors
Newsgroup available over NNTP:
nntp://nntp.lore.kernel.org/tech.elisa.lists.linux-safety
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git