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

Sami Kerola
2013-07-07T19:55:38Z

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