nilfs-utils: do not use assignment in if condition

This fixes the following checkpatch errors:

 ERROR: do not use assignment in if condition
 #147: FILE: bin/rmcp.c:147:
 +       if ((progname = strrchr(argv[0], '/')) == NULL)

 ERROR: do not use assignment in if condition
 #85: FILE: bin/mkcp.c:85:
 +       if ((progname = strrchr(argv[0], '/')) == NULL)

 ERROR: do not use assignment in if condition
 #183: FILE: bin/dumpseg.c:183:
 +       if ((progname = strrchr(argv[0], '/')) == NULL)

 ERROR: do not use assignment in if condition
 #239: FILE: bin/dumpseg.c:239:
 +               if ((segsize = nilfs_get_segment(nilfs, segnum, &seg)) < 0) {

 ERROR: do not use assignment in if condition
 #90: FILE: bin/chcp.c:90:
 +       if ((progname = strrchr(argv[0], '/')) == NULL)

 ERROR: do not use assignment in if condition
 #306: FILE: lib/gc.c:306:
 +               if ((n = nilfs_get_vinfo(nilfs, vinfo, j)) < 0)

 ERROR: do not use assignment in if condition
 #345: FILE: lib/gc.c:345:
 +               if ((n = nilfs_get_cpinfo(

 ERROR: do not use assignment in if condition
 #465: FILE: lib/gc.c:465:
 +       if ((n = nilfs_get_snapshot(nilfs, &ss)) < 0)

 ERROR: do not use assignment in if condition
 #559: FILE: lib/gc.c:559:
 +               if ((n = nilfs_get_bdescs(nilfs, bdescs + i, count)) < 0)

 ERROR: do not use assignment in if condition
 #127: FILE: lib/nilfs.c:127:
 +               if ((q = strchr(p, MNTOPT_SEP)) != NULL) {

 ERROR: do not use assignment in if condition
 #248: FILE: lib/nilfs.c:248:
 +       if ((pagesize = sysconf(_SC_PAGESIZE)) < 0)

 ERROR: do not use assignment in if condition
 #668: FILE: lib/nilfs.c:668:
 +       if (((ret = ioctl(nilfs->n_iocfd, NILFS_IOCTL_SYNC, cnop)) < 0) &&

 ERROR: do not use assignment in if condition
 #742: FILE: lib/nilfs.c:742:
 +               if ((segment = mmap(0, segsize, PROT_READ, MAP_SHARED,

 ERROR: do not use assignment in if condition
 #747: FILE: lib/nilfs.c:747:
 +               if ((segment = malloc(segsize)) == NULL)

 ERROR: do not use assignment in if condition
 #42: FILE: lib/vector.c:42:
 +       if ((vector = malloc(sizeof(struct nilfs_vector))) == NULL)

 ERROR: do not use assignment in if condition
 #45: FILE: lib/vector.c:45:
 +       if ((vector->v_data = malloc(elemsize * NILFS_VECTOR_INIT_MAXELEMS)) == NULL) {

 ERROR: do not use assignment in if condition
 #91: FILE: lib/vector.c:91:
 +               if ((data = realloc(vector->v_data,

 ERROR: do not use assignment in if condition
 #622: FILE: sbin/mkfs/mkfs.c:622:
 +       if ((fd = open(device, O_RDWR)) < 0)

 ERROR: do not use assignment in if condition
 #1059: FILE: sbin/mkfs/mkfs.c:1059:
 +               if ((cbufp = rindex(cbuf, '\n')) != NULL)

 ERROR: do not use assignment in if condition
 #1152: FILE: sbin/nilfs-resize/nilfs-resize.c:1152:
 +       if ((progname = strrchr(argv[0], '/')) != NULL)

 ERROR: do not use assignment in if condition
 #685: FILE: sbin/cleanerd/cldconfig.c:685:
 +       if ((fp = fopen(conffile, "r")) == NULL)

 ERROR: do not use assignment in if condition
 #695: FILE: sbin/cleanerd/cldconfig.c:695:
 +               if ((ntoks = tokenize(line, tokens, NTOKENS_MAX)) == 0)

 ERROR: do not use assignment in if condition
 #697: FILE: sbin/cleanerd/cldconfig.c:697:
 +               if ((ret = nilfs_cldconfig_handle_keyword(

 ERROR: do not use assignment in if condition
 #584: FILE: sbin/cleanerd/cleanerd.c:584:
 +       if ((smv = nilfs_vector_create(sizeof(struct nilfs_segimp))) == NULL)

 ERROR: do not use assignment in if condition
 #606: FILE: sbin/cleanerd/cleanerd.c:606:
 +               if ((n = nilfs_get_suinfo(nilfs, segnum, si, count)) < 0) {

 ERROR: do not use assignment in if condition
 #611: FILE: sbin/cleanerd/cleanerd.c:611:
 +                       if (nilfs_suinfo_reclaimable(&si[i]) &&

 ERROR: do not use assignment in if condition
 #660: FILE: sbin/cleanerd/cleanerd.c:660:
 +               if ((pid = fork()) < 0)

 ERROR: do not use assignment in if condition
 #310: FILE: sbin/mount/fstab.c:310:
 +               if ((opts = mc->m.mnt_opts) != NULL

 ERROR: do not use assignment in if condition
 #278: FILE: sbin/mount/umount.nilfs2.c:278:
 +       if ((fd = open (device, O_RDONLY)) < 0) {

 ERROR: do not use assignment in if condition
 #391: FILE: sbin/mount/umount.nilfs2.c:391:
 +               if (!read_only_mount_point(mc) &&

 ERROR: do not use assignment in if condition
 #471: FILE: sbin/mount/umount.nilfs2.c:471:
 +                       if ((mc = getmntoptfile (spec)) != NULL)

 ERROR: do not use assignment in if condition
 #494: FILE: sbin/nilfs-clean/nilfs-clean.c:494:
 +       if ((progname = strrchr(argv[0], '/')) != NULL)

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>