aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-11-29 16:43:33 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-11-29 16:43:33 +0100
commit9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (patch)
treea950fa73740d345e11ba1ce90f4fc39ee12516e6
parent1a7256ac38284caffd2a0de2250364369059be69 (diff)
downloadbusybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.gz
busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.bz2
busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.zip
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libarchive/bz/compress.c4
-rw-r--r--archival/libarchive/decompress_bunzip2.c1
-rw-r--r--archival/libarchive/decompress_gunzip.c2
-rw-r--r--archival/libarchive/lzo1x_9x.c1
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/blkidP.h4
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/cache.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/dev.c4
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/read.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/tag.c6
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.c10
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/initialize.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c4
-rw-r--r--e2fsprogs/old_e2fsprogs/fsck.c1
-rw-r--r--e2fsprogs/old_e2fsprogs/mke2fs.c6
-rw-r--r--e2fsprogs/old_e2fsprogs/util.c2
-rw-r--r--libbb/pw_encrypt_md5.c2
-rw-r--r--miscutils/chat.c2
-rw-r--r--networking/tc.c3
-rw-r--r--networking/traceroute.c4
-rw-r--r--util-linux/volume_id/unused_msdos.c2
20 files changed, 25 insertions, 39 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c
index a7dd72d9e..23de9d3f5 100644
--- a/archival/libarchive/bz/compress.c
+++ b/archival/libarchive/bz/compress.c
@@ -249,7 +249,7 @@ void generateMTFValues(EState* s)
249static NOINLINE 249static NOINLINE
250void sendMTFValues(EState* s) 250void sendMTFValues(EState* s)
251{ 251{
252 int32_t v, t, i, j, gs, ge, totc, bt, bc, iter; 252 int32_t v, t, i, j, gs, ge, bt, bc, iter;
253 int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; 253 int32_t nSelectors, alphaSize, minLen, maxLen, selCtr;
254 int32_t nGroups; 254 int32_t nGroups;
255 255
@@ -345,7 +345,6 @@ void sendMTFValues(EState* s)
345 } 345 }
346#endif 346#endif
347 nSelectors = 0; 347 nSelectors = 0;
348 totc = 0;
349 gs = 0; 348 gs = 0;
350 while (1) { 349 while (1) {
351 /*--- Set group start & end marks. --*/ 350 /*--- Set group start & end marks. --*/
@@ -411,7 +410,6 @@ void sendMTFValues(EState* s)
411 bt = t; 410 bt = t;
412 } 411 }
413 } 412 }
414 totc += bc;
415 fave[bt]++; 413 fave[bt]++;
416 s->selector[nSelectors] = bt; 414 s->selector[nSelectors] = bt;
417 nSelectors++; 415 nSelectors++;
diff --git a/archival/libarchive/decompress_bunzip2.c b/archival/libarchive/decompress_bunzip2.c
index fb1f2921f..6396fe40d 100644
--- a/archival/libarchive/decompress_bunzip2.c
+++ b/archival/libarchive/decompress_bunzip2.c
@@ -818,7 +818,6 @@ static char *const bunzip_errors[] = {
818/* Dumb little test thing, decompress stdin to stdout */ 818/* Dumb little test thing, decompress stdin to stdout */
819int main(int argc, char **argv) 819int main(int argc, char **argv)
820{ 820{
821 int i;
822 char c; 821 char c;
823 822
824 int i = unpack_bz2_stream(0, 1); 823 int i = unpack_bz2_stream(0, 1);
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c
index 4e6b138c3..7c6f38ec3 100644
--- a/archival/libarchive/decompress_gunzip.c
+++ b/archival/libarchive/decompress_gunzip.c
@@ -336,7 +336,7 @@ static int huft_build(const unsigned *b, const unsigned n,
336 } 336 }
337 337
338 /* Find minimum and maximum length, bound *m by those */ 338 /* Find minimum and maximum length, bound *m by those */
339 for (j = 1; (c[j] == 0) && (j <= BMAX); j++) 339 for (j = 1; (j <= BMAX) && (c[j] == 0); j++)
340 continue; 340 continue;
341 k = j; /* minimum code length */ 341 k = j; /* minimum code length */
342 for (i = BMAX; (c[i] == 0) && i; i--) 342 for (i = BMAX; (c[i] == 0) && i; i--)
diff --git a/archival/libarchive/lzo1x_9x.c b/archival/libarchive/lzo1x_9x.c
index 3e331984d..2b490ae83 100644
--- a/archival/libarchive/lzo1x_9x.c
+++ b/archival/libarchive/lzo1x_9x.c
@@ -466,7 +466,6 @@ static int find_match(lzo1x_999_t *c, lzo_swd_p s,
466 } 466 }
467 467
468 s->m_len = 1; 468 s->m_len = 1;
469 s->m_len = 1;
470#ifdef SWD_BEST_OFF 469#ifdef SWD_BEST_OFF
471 if (s->use_best_off) 470 if (s->use_best_off)
472 memset(s->best_pos, 0, sizeof(s->best_pos)); 471 memset(s->best_pos, 0, sizeof(s->best_pos));
diff --git a/e2fsprogs/old_e2fsprogs/blkid/blkidP.h b/e2fsprogs/old_e2fsprogs/blkid/blkidP.h
index d6b2b42cc..bbadc8eb5 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/blkidP.h
+++ b/e2fsprogs/old_e2fsprogs/blkid/blkidP.h
@@ -179,8 +179,4 @@ extern int blkid_set_tag(blkid_dev dev, const char *name,
179extern blkid_dev blkid_new_dev(void); 179extern blkid_dev blkid_new_dev(void);
180extern void blkid_free_dev(blkid_dev dev); 180extern void blkid_free_dev(blkid_dev dev);
181 181
182#ifdef __cplusplus
183}
184#endif
185
186#endif 182#endif
diff --git a/e2fsprogs/old_e2fsprogs/blkid/cache.c b/e2fsprogs/old_e2fsprogs/blkid/cache.c
index d1d29146b..251e49900 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/cache.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/cache.c
@@ -115,7 +115,7 @@ int main(int argc, char** argv)
115 argv[0], ret); 115 argv[0], ret);
116 exit(1); 116 exit(1);
117 } 117 }
118 if ((ret = blkid_probe_all(cache) < 0)) 118 if ((ret = blkid_probe_all(cache)) < 0)
119 fprintf(stderr, "error probing devices\n"); 119 fprintf(stderr, "error probing devices\n");
120 120
121 blkid_put_cache(cache); 121 blkid_put_cache(cache);
diff --git a/e2fsprogs/old_e2fsprogs/blkid/dev.c b/e2fsprogs/old_e2fsprogs/blkid/dev.c
index bb0cc914a..260e49c65 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/dev.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/dev.c
@@ -153,7 +153,7 @@ extern int optind;
153void usage(char *prog) 153void usage(char *prog)
154{ 154{
155 fprintf(stderr, "Usage: %s [-f blkid_file] [-m debug_mask]\n", prog); 155 fprintf(stderr, "Usage: %s [-f blkid_file] [-m debug_mask]\n", prog);
156 fprintf(stderr, "\tList all devices and exit\n", prog); 156 fprintf(stderr, "\tList all devices and exit\n");
157 exit(1); 157 exit(1);
158} 158}
159 159
@@ -176,7 +176,7 @@ int main(int argc, char **argv)
176 case 'm': 176 case 'm':
177 blkid_debug_mask = strtoul (optarg, &tmp, 0); 177 blkid_debug_mask = strtoul (optarg, &tmp, 0);
178 if (*tmp) { 178 if (*tmp) {
179 fprintf(stderr, "Invalid debug mask: %d\n", 179 fprintf(stderr, "Invalid debug mask: %s\n",
180 optarg); 180 optarg);
181 exit(1); 181 exit(1);
182 } 182 }
diff --git a/e2fsprogs/old_e2fsprogs/blkid/read.c b/e2fsprogs/old_e2fsprogs/blkid/read.c
index f795a5d14..feeda518b 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/read.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/read.c
@@ -385,7 +385,7 @@ void blkid_read_cache(blkid_cache cache)
385 continue; 385 continue;
386 end = strlen(buf) - 1; 386 end = strlen(buf) - 1;
387 /* Continue reading next line if it ends with a backslash */ 387 /* Continue reading next line if it ends with a backslash */
388 while (buf[end] == '\\' && end < sizeof(buf) - 2 && 388 while (end < sizeof(buf) - 2 && buf[end] == '\\' &&
389 fgets(buf + end, sizeof(buf) - end, file)) { 389 fgets(buf + end, sizeof(buf) - end, file)) {
390 end = strlen(buf) - 1; 390 end = strlen(buf) - 1;
391 lineno++; 391 lineno++;
diff --git a/e2fsprogs/old_e2fsprogs/blkid/tag.c b/e2fsprogs/old_e2fsprogs/blkid/tag.c
index 8337b46b6..7424edeb8 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/tag.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/tag.c
@@ -356,7 +356,7 @@ void usage(char *prog)
356 fprintf(stderr, "Usage: %s [-f blkid_file] [-m debug_mask] device " 356 fprintf(stderr, "Usage: %s [-f blkid_file] [-m debug_mask] device "
357 "[type value]\n", 357 "[type value]\n",
358 prog); 358 prog);
359 fprintf(stderr, "\tList all tags for a device and exit\n", prog); 359 fprintf(stderr, "\tList all tags for a device and exit\n");
360 exit(1); 360 exit(1);
361} 361}
362 362
@@ -382,7 +382,7 @@ int main(int argc, char **argv)
382 case 'm': 382 case 'm':
383 blkid_debug_mask = strtoul (optarg, &tmp, 0); 383 blkid_debug_mask = strtoul (optarg, &tmp, 0);
384 if (*tmp) { 384 if (*tmp) {
385 fprintf(stderr, "Invalid debug mask: %d\n", 385 fprintf(stderr, "Invalid debug mask: %s\n",
386 optarg); 386 optarg);
387 exit(1); 387 exit(1);
388 } 388 }
@@ -407,7 +407,7 @@ int main(int argc, char **argv)
407 407
408 dev = blkid_get_dev(cache, devname, flags); 408 dev = blkid_get_dev(cache, devname, flags);
409 if (!dev) { 409 if (!dev) {
410 fprintf(stderr, "%s: cannot find device in blkid cache\n"); 410 fprintf(stderr, "%s: cannot find device in blkid cache\n", devname);
411 exit(1); 411 exit(1);
412 } 412 }
413 if (search_type) { 413 if (search_type) {
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c
index 373e8ce91..8400a92ce 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.c
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.c
@@ -1050,7 +1050,7 @@ static errcode_t ea_refcount_create(int size, ext2_refcount_t *ret)
1050 refcount->size = size; 1050 refcount->size = size;
1051 bytes = (size_t) (size * sizeof(struct ea_refcount_el)); 1051 bytes = (size_t) (size * sizeof(struct ea_refcount_el));
1052#ifdef DEBUG 1052#ifdef DEBUG
1053 printf("Refcount allocated %d entries, %d bytes.\n", 1053 printf("Refcount allocated %d entries, %lu bytes.\n",
1054 refcount->size, bytes); 1054 refcount->size, bytes);
1055#endif 1055#endif
1056 retval = ext2fs_get_mem(bytes, &refcount->list); 1056 retval = ext2fs_get_mem(bytes, &refcount->list);
@@ -3424,7 +3424,7 @@ static void e2fsck_pass1(e2fsck_t ctx)
3424 continue; 3424 continue;
3425 } 3425 }
3426 if ((inode->i_links_count || inode->i_blocks || 3426 if ((inode->i_links_count || inode->i_blocks ||
3427 inode->i_blocks || inode->i_block[0]) && 3427 inode->i_block[0]) &&
3428 fix_problem(ctx, PR_1_JOURNAL_INODE_NOT_CLEAR, 3428 fix_problem(ctx, PR_1_JOURNAL_INODE_NOT_CLEAR,
3429 &pctx)) { 3429 &pctx)) {
3430 memset(inode, 0, inode_size); 3430 memset(inode, 0, inode_size);
@@ -12195,11 +12195,7 @@ static void swap_filesys(e2fsck_t ctx)
12195void *e2fsck_allocate_memory(e2fsck_t ctx, unsigned int size, 12195void *e2fsck_allocate_memory(e2fsck_t ctx, unsigned int size,
12196 const char *description) 12196 const char *description)
12197{ 12197{
12198 void *ret; 12198 return xzalloc(size);
12199 char buf[256];
12200
12201 ret = xzalloc(size);
12202 return ret;
12203} 12199}
12204 12200
12205static char *string_copy(const char *str, int len) 12201static char *string_copy(const char *str, int len)
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c b/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c
index da2d15137..240335b32 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c
@@ -83,7 +83,7 @@ static int calc_reserved_gdt_blocks(ext2_filsys fs)
83 if (rsv_gdb > EXT2_ADDR_PER_BLOCK(sb)) 83 if (rsv_gdb > EXT2_ADDR_PER_BLOCK(sb))
84 rsv_gdb = EXT2_ADDR_PER_BLOCK(sb); 84 rsv_gdb = EXT2_ADDR_PER_BLOCK(sb);
85#ifdef RES_GDT_DEBUG 85#ifdef RES_GDT_DEBUG
86 printf("max_blocks %lu, rsv_groups = %lu, rsv_gdb = %lu\n", 86 printf("max_blocks %lu, rsv_groups = %lu, rsv_gdb = %u\n",
87 max_blocks, rsv_groups, rsv_gdb); 87 max_blocks, rsv_groups, rsv_gdb);
88#endif 88#endif
89 89
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c b/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
index 474f07340..3c95829f0 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
@@ -544,7 +544,7 @@ static errcode_t unix_read_blk(io_channel channel, unsigned long block,
544 /* If it's in the cache, use it! */ 544 /* If it's in the cache, use it! */
545 if ((cache = find_cached_block(data, block, &reuse[0]))) { 545 if ((cache = find_cached_block(data, block, &reuse[0]))) {
546#ifdef DEBUG 546#ifdef DEBUG
547 printf("Using cached block %d\n", block); 547 printf("Using cached block %lu\n", block);
548#endif 548#endif
549 memcpy(cp, cache->buf, channel->block_size); 549 memcpy(cp, cache->buf, channel->block_size);
550 count--; 550 count--;
@@ -560,7 +560,7 @@ static errcode_t unix_read_blk(io_channel channel, unsigned long block,
560 if (find_cached_block(data, block+i, &reuse[i])) 560 if (find_cached_block(data, block+i, &reuse[i]))
561 break; 561 break;
562#ifdef DEBUG 562#ifdef DEBUG
563 printf("Reading %d blocks starting at %d\n", i, block); 563 printf("Reading %d blocks starting at %lu\n", i, block);
564#endif 564#endif
565 if ((retval = raw_read_blk(channel, data, block, i, cp))) 565 if ((retval = raw_read_blk(channel, data, block, i, cp)))
566 return retval; 566 return retval;
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c
index 3a0743bb1..91cce970c 100644
--- a/e2fsprogs/old_e2fsprogs/fsck.c
+++ b/e2fsprogs/old_e2fsprogs/fsck.c
@@ -1239,7 +1239,6 @@ static void PRS(int argc, char **argv)
1239 progress_fd = 0; 1239 progress_fd = 0;
1240 else { 1240 else {
1241 goto next_arg; 1241 goto next_arg;
1242 i++;
1243 } 1242 }
1244 } 1243 }
1245 break; 1244 break;
diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c
index 35d717a55..e44d9865c 100644
--- a/e2fsprogs/old_e2fsprogs/mke2fs.c
+++ b/e2fsprogs/old_e2fsprogs/mke2fs.c
@@ -385,7 +385,7 @@ static errcode_t zero_blocks(ext2_filsys fs, blk_t blk, int num,
385 struct progress_struct *progress, 385 struct progress_struct *progress,
386 blk_t *ret_blk, int *ret_count) 386 blk_t *ret_blk, int *ret_count)
387{ 387{
388 int j, count, next_update, next_update_incr; 388 int j, count, next_update;
389 static char *buf; 389 static char *buf;
390 errcode_t retval; 390 errcode_t retval;
391 391
@@ -403,9 +403,7 @@ static errcode_t zero_blocks(ext2_filsys fs, blk_t blk, int num,
403 } 403 }
404 /* OK, do the write loop */ 404 /* OK, do the write loop */
405 next_update = 0; 405 next_update = 0;
406 next_update_incr = num / 100; 406
407 if (next_update_incr < 1)
408 next_update_incr = 1;
409 for (j=0; j < num; j += STRIDE_LENGTH, blk += STRIDE_LENGTH) { 407 for (j=0; j < num; j += STRIDE_LENGTH, blk += STRIDE_LENGTH) {
410 count = num - j; 408 count = num - j;
411 if (count > STRIDE_LENGTH) 409 if (count > STRIDE_LENGTH)
diff --git a/e2fsprogs/old_e2fsprogs/util.c b/e2fsprogs/old_e2fsprogs/util.c
index a61abc2c6..e6758e093 100644
--- a/e2fsprogs/old_e2fsprogs/util.c
+++ b/e2fsprogs/old_e2fsprogs/util.c
@@ -117,7 +117,7 @@ void parse_journal_opts(char **journal_device, int *journal_flags,
117 } 117 }
118 if (strcmp(token, "device") == 0) { 118 if (strcmp(token, "device") == 0) {
119 *journal_device = blkid_get_devname(NULL, arg, NULL); 119 *journal_device = blkid_get_devname(NULL, arg, NULL);
120 if (!journal_device) { 120 if (!*journal_device) {
121 journal_usage++; 121 journal_usage++;
122 continue; 122 continue;
123 } 123 }
diff --git a/libbb/pw_encrypt_md5.c b/libbb/pw_encrypt_md5.c
index 889e09cab..1e52ecaea 100644
--- a/libbb/pw_encrypt_md5.c
+++ b/libbb/pw_encrypt_md5.c
@@ -86,7 +86,7 @@ md5_crypt(char result[MD5_OUT_BUFSIZE], const unsigned char *pw, const unsigned
86 86
87 /* Get the length of the salt including "$1$" */ 87 /* Get the length of the salt including "$1$" */
88 sl = 3; 88 sl = 3;
89 while (salt[sl] && salt[sl] != '$' && sl < (3 + 8)) 89 while (sl < (3 + 8) && salt[sl] && salt[sl] != '$')
90 sl++; 90 sl++;
91 91
92 /* Hash. the password first, since that is what is most unknown */ 92 /* Hash. the password first, since that is what is most unknown */
diff --git a/miscutils/chat.c b/miscutils/chat.c
index ce994f870..bd2abc24a 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -296,7 +296,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv)
296 full_write(record_fd, buf+buf_len, 1); 296 full_write(record_fd, buf+buf_len, 1);
297 } 297 }
298 // dump device input if ECHO ON 298 // dump device input if ECHO ON
299 if (echo > 0) { 299 if (echo) {
300// if (buf[buf_len] < ' ') { 300// if (buf[buf_len] < ' ') {
301// full_write(STDERR_FILENO, "^", 1); 301// full_write(STDERR_FILENO, "^", 1);
302// buf[buf_len] += '@'; 302// buf[buf_len] += '@';
diff --git a/networking/tc.c b/networking/tc.c
index b9a4d16cc..533f7c042 100644
--- a/networking/tc.c
+++ b/networking/tc.c
@@ -418,9 +418,6 @@ static int print_class(const struct sockaddr_nl *who UNUSED_PARAM,
418static int print_filter(const struct sockaddr_nl *who UNUSED_PARAM, 418static int print_filter(const struct sockaddr_nl *who UNUSED_PARAM,
419 struct nlmsghdr *hdr, void *arg UNUSED_PARAM) 419 struct nlmsghdr *hdr, void *arg UNUSED_PARAM)
420{ 420{
421 struct tcmsg *msg = NLMSG_DATA(hdr);
422 int len = hdr->nlmsg_len;
423 struct rtattr * tb[TCA_MAX+1];
424 return 0; 421 return 0;
425} 422}
426 423
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 0c18d6c0c..97a7a19e0 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -791,7 +791,9 @@ static int
791common_traceroute_main(int op, char **argv) 791common_traceroute_main(int op, char **argv)
792{ 792{
793 int minpacket; 793 int minpacket;
794#ifdef IP_TOS
794 int tos = 0; 795 int tos = 0;
796#endif
795 int max_ttl = 30; 797 int max_ttl = 30;
796 int nprobes = 3; 798 int nprobes = 3;
797 int first_ttl = 1; 799 int first_ttl = 1;
@@ -838,8 +840,10 @@ common_traceroute_main(int op, char **argv)
838 if (op & OPT_IP_CHKSUM) 840 if (op & OPT_IP_CHKSUM)
839 bb_error_msg("warning: ip checksums disabled"); 841 bb_error_msg("warning: ip checksums disabled");
840#endif 842#endif
843#ifdef IP_TOS
841 if (op & OPT_TOS) 844 if (op & OPT_TOS)
842 tos = xatou_range(tos_str, 0, 255); 845 tos = xatou_range(tos_str, 0, 255);
846#endif
843 if (op & OPT_MAX_TTL) 847 if (op & OPT_MAX_TTL)
844 max_ttl = xatou_range(max_ttl_str, 1, 255); 848 max_ttl = xatou_range(max_ttl_str, 1, 255);
845 if (op & OPT_PORT) 849 if (op & OPT_PORT)
diff --git a/util-linux/volume_id/unused_msdos.c b/util-linux/volume_id/unused_msdos.c
index d2fc66caa..5ebaa3eef 100644
--- a/util-linux/volume_id/unused_msdos.c
+++ b/util-linux/volume_id/unused_msdos.c
@@ -176,7 +176,7 @@ int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t of
176 if (id->partition_count < 4) 176 if (id->partition_count < 4)
177 id->partition_count = 4; 177 id->partition_count = 4;
178 178
179 p = &id->partitions[id->partition_count]; 179// p = &id->partitions[id->partition_count];
180 180
181// if (is_raid(part[i].sys_ind)) 181// if (is_raid(part[i].sys_ind))
182// volume_id_set_usage_part(p, VOLUME_ID_RAID); 182// volume_id_set_usage_part(p, VOLUME_ID_RAID);