[PATCH 14/34] ipcs: assigned values are never read [clang-analyzer]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 sys-utils/ipcs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
index 14f5f0b..16e5206 100644
--- a/sys-utils/ipcs.c
+++ b/sys-utils/ipcs.c
@@ -278,7 +278,6 @@ static void do_shm (char format, int unit)
 	 */
 	if (ipc_shm_get_info(-1, &shmds) < 1)
 		return;
-	shmdsp = shmds;
 
 	for (shmdsp = shmds; shmdsp->next != NULL; shmdsp = shmdsp->next) {
 		if (format == CREATOR)  {
@@ -396,7 +395,6 @@ static void do_sem (char format)
 	 */
 	if (ipc_sem_get_info(-1, &semds) < 1)
 		return;
-	semdsp = semds;
 
 	for (semdsp = semds; semdsp->next != NULL; semdsp = semdsp->next) {
 		if (format == CREATOR)  {
@@ -501,7 +499,6 @@ static void do_msg (char format, int unit)
 	 */
 	if (ipc_msg_get_info(-1, &msgds) < 1)
 		return;
-	msgdsp = msgds;
 
 	for (msgdsp = msgds; msgdsp->next != NULL; msgdsp = msgdsp->next) {
 		if (format == CREATOR) {
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux