scout: Remove unused error codes
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Wed, 13 Jul 2011 13:02:03 +0000 (14:02 +0100)
committerDerrick Brashear <shadow@dementia.org>
Wed, 13 Jul 2011 19:57:02 +0000 (12:57 -0700)
Remove unused error returns, and make gcc 4.6.0 a little bit happier

Change-Id: Ic1fe541ed860a739ac3e2aa2978cbb8b92ec1a8d
Reviewed-on: http://gerrit.openafs.org/4995
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/scout/scout.c

index 31a9890..b65865d 100644 (file)
@@ -1021,7 +1021,6 @@ mini_PrintDiskStats(struct mini_line *a_srvline,
 {                              /*mini_PrintDiskStats */
 
     static char rn[] = "mini_PrintDiskStats";  /*Routine name */
-    int code;                  /*Return code */
     char s[128];               /*String buffer */
     struct onode *curr_disklight;      /*Ptr to current disk light */
     struct onode *srvname_light;       /*Ptr to server name light */
@@ -1077,13 +1076,13 @@ mini_PrintDiskStats(struct mini_line *a_srvline,
                        used_disk_idx, diskdata->label);
                fflush(scout_debugfd);
            }
-           code = mini_justify(" ",    /*Src buffer */
-                               diskdata->label,        /*Dest buffer */
-                               scout_col_width[COL_DISK],      /*Dest's width */
-                               SCOUT_RIGHT_JUSTIFY,    /*Right-justify */
-                               SCOUT_LEFT_TRUNC,       /*Left-truncate */
-                               SCOUT_ISNT_LDISK);      /*Not a labeled disk */
-           code = gator_light_set(curr_disklight, 0);
+           mini_justify(" ",   /*Src buffer */
+                        diskdata->label,       /*Dest buffer */
+                        scout_col_width[COL_DISK],     /*Dest's width */
+                        SCOUT_RIGHT_JUSTIFY,   /*Right-justify */
+                        SCOUT_LEFT_TRUNC,      /*Left-truncate */
+                        SCOUT_ISNT_LDISK);     /*Not a labeled disk */
+           gator_light_set(curr_disklight, 0);
            if (a_fix_line_num) {
                curr_disklight->o_y += a_delta_line_num;
                disk_strparams = (struct gwin_strparams *)(diskdata->llrock);
@@ -1189,14 +1188,14 @@ mini_PrintDiskStats(struct mini_line *a_srvline,
                            rn, s, found_idx, diskdata->label);
                    fflush(scout_debugfd);
                }
-               code = mini_justify(s,  /*Src buffer */
-                                   diskdata->label,    /*Dest buffer */
-                                   scout_col_width[COL_DISK],  /*Dest's width */
-                                   SCOUT_LEFT_JUSTIFY, /*Left-justify */
-                                   SCOUT_LEFT_TRUNC,   /*Left-truncate */
-                                   SCOUT_IS_LDISK);    /*Labeled disk */
-
-               code = gator_light_set(sc_disk->disk_lp, pastthreshold);
+               mini_justify(s, /*Src buffer */
+                            diskdata->label,   /*Dest buffer */
+                            scout_col_width[COL_DISK], /*Dest's width */
+                            SCOUT_LEFT_JUSTIFY,        /*Left-justify */
+                            SCOUT_LEFT_TRUNC,  /*Left-truncate */
+                            SCOUT_IS_LDISK);   /*Labeled disk */
+
+               gator_light_set(sc_disk->disk_lp, pastthreshold);
 
            }                   /*Found disk record */
        }