Coverity-updates archive

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

New Defects reported by Coverity Scan for NetBSD-i386-user



Hi,

Please find the latest report on new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.

181 new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.
54 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 20 of 181 defect(s)


** CID 975107:  Unchecked return value  (CHECKED_RETURN)
/gnu/dist/texinfo/info/indices.c: 316 in index_entry_exists()

** CID 1264751:  Unchecked return value  (CHECKED_RETURN)
/home/phil/cov/xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_display.c: 6015 in sna_mode_enable()

** CID 1264752:  Unchecked return value  (CHECKED_RETURN)
/home/phil/cov/xsrc/external/mit/xf86-video-intel/dist/src/uxa/i965_render.c: 2108 in i965_prepare_composite()

** CID 1264753:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1238 in am_nfs3_access_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1246 in am_nfs3_access_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1257 in am_nfs3_access_3_svc()

** CID 1264754:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1541 in am_nfs3_link_3_svc()

** CID 1264755:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1592 in am_nfs3_readdir_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1610 in am_nfs3_readdir_3_svc()

** CID 1264756:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1387 in am_nfs3_mkdir_3_svc()

** CID 1264757:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1421 in am_nfs3_mknod_3_svc()

** CID 1264758:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1679 in am_nfs3_fsstat_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1698 in am_nfs3_fsstat_3_svc()

** CID 1264759:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1755 in am_nfs3_fsinfo_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1772 in am_nfs3_fsinfo_3_svc()

** CID 1264760:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1087 in am_nfs3_getattr_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1092 in am_nfs3_getattr_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1109 in am_nfs3_getattr_3_svc()

** CID 1264761:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1370 in am_nfs3_create_3_svc()

** CID 1264762:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1325 in am_nfs3_read_3_svc()

** CID 1264763:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1154 in am_nfs3_lookup_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1191 in am_nfs3_lookup_3_svc()

** CID 1264764:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1813 in am_nfs3_pathconf_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1830 in am_nfs3_pathconf_3_svc()

** CID 1264765:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1862 in am_nfs3_commit_3_svc()

** CID 1264766:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 2569 in xdr_am_MKDIR3args()

** CID 1264767:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 1494 in xdr_am_ACCESS3args()

** CID 1264768:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 2216 in xdr_am_PATHCONF3resok()

** CID 1264769:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 1462 in xdr_am_COMMIT3resfail()


________________________________________________________________________________________________________
*** CID 975107:  Unchecked return value  (CHECKED_RETURN)
/gnu/dist/texinfo/info/indices.c: 316 in index_entry_exists()
310         {
311           for (i = 0; (i > -1) && (index_index[i]); i++)
312             if (string_in_line (string, index_index[i]->label) != -1)
313               break;
314     
315           if ((i > -1) && (index_index[i]))
>>>     CID 975107:  Unchecked return value  (CHECKED_RETURN)
>>>     No check of the return value of "string_in_line(string, index_index[i]->label)".
316             string_in_line (string, index_index[i]->label);
317         }
318     
319       /* If that failed, return 0. */
320       if ((i < 0) || (!index_index[i]))
321         return 0;

________________________________________________________________________________________________________
*** CID 1264751:  Unchecked return value  (CHECKED_RETURN)
/home/phil/cov/xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_display.c: 6015 in sna_mode_enable()
6009     		if (!crtc->enabled)
6010     			continue;
6011     
6012     		if (crtc->mode.Clock == 0)
6013     			continue;
6014     
>>>     CID 1264751:  Unchecked return value  (CHECKED_RETURN)
>>>     No check of the return value of "__sna_crtc_set_mode(crtc)".
6015     		__sna_crtc_set_mode(crtc);
6016     	}
6017     
6018     	update_flush_interval(sna);
6019     	sna_show_cursors(sna->scrn);
6020     	sna->mode.dirty = false;

________________________________________________________________________________________________________
*** CID 1264752:  Unchecked return value  (CHECKED_RETURN)
/home/phil/cov/xsrc/external/mit/xf86-video-intel/dist/src/uxa/i965_render.c: 2108 in i965_prepare_composite()
2102     		intel->scale_units[1][1] = -1;
2103     	} else {
2104     		assert(mask != NULL);
2105     		intel->transform[1] = mask_picture->transform;
2106     		intel->scale_units[1][0] = 1. / mask->drawable.width;
2107     		intel->scale_units[1][1] = 1. / mask->drawable.height;
>>>     CID 1264752:  Unchecked return value  (CHECKED_RETURN)
>>>     No check of the return value of "intel_uxa_transform_is_affine(intel->transform[1])".
2108     		composite_op->is_affine &=
2109     		    intel_uxa_transform_is_affine(intel->transform[1]);
2110     	}
2111     
2112     	if (mask) {
2113     		assert(mask_picture != NULL);

________________________________________________________________________________________________________
*** CID 1264753:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1238 in am_nfs3_access_3_svc()
1232       u_int accessbits = argp->access;
1233       u_int accessmask = AM_ACCESS3_LOOKUP|AM_ACCESS3_READ;
1234       am_post_op_attr *post_op_obj;
1235       am_node *mp;
1236     
1237       if (amuDebug(D_TRACE))
>>>     CID 1264753:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "access_3:");".
1238         plog(XLOG_DEBUG, "access_3:");
1239     
1240       mp = fh3_to_mp(obj);
1241       if (!mp) {
1242         post_op_obj = &result.res_u.fail.obj_attributes;
1243         post_op_obj->attributes_follow = 0;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1246 in am_nfs3_access_3_svc()
1240       mp = fh3_to_mp(obj);
1241       if (!mp) {
1242         post_op_obj = &result.res_u.fail.obj_attributes;
1243         post_op_obj->attributes_follow = 0;
1244         result.status = nfs_error(ENOENT);
1245         if (amuDebug(D_TRACE))
>>>     CID 1264753:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "access_3: ENOENT");".
1246           plog(XLOG_DEBUG, "access_3: ENOENT");
1247       } else {
1248         nfsfattr *fattr = &mp->am_fattr;
1249         am_fattr3 *fattr3;
1250         post_op_obj = &result.res_u.ok.obj_attributes;
1251         fattr3 = &post_op_obj->am_post_op_attr_u.attributes;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1257 in am_nfs3_access_3_svc()
1251         fattr3 = &post_op_obj->am_post_op_attr_u.attributes;
1252         post_op_obj->attributes_follow = 1;
1253         fattr_to_fattr3(fattr, fattr3);
1254     
1255         result.res_u.ok.access = accessbits & accessmask;
1256         if (amuDebug(D_TRACE))
>>>     CID 1264753:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "access_3: b=%x m=...".
1257           plog(XLOG_DEBUG, "access_3: b=%x m=%x", accessbits, accessmask);
1258     
1259         result.status = AM_NFS3_OK;
1260       }
1261     
1262       return &result;

________________________________________________________________________________________________________
*** CID 1264754:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1541 in am_nfs3_link_3_svc()
1535       am_post_op_attr *post_op_file;
1536       am_pre_op_attr *pre_op_dir;
1537       am_post_op_attr *post_op_dir;
1538       am_node *mp_file, *mp_dir;
1539     
1540       if (amuDebug(D_TRACE))
>>>     CID 1264754:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "link_3:");".
1541         plog(XLOG_DEBUG, "link_3:");
1542     
1543       post_op_file = &result.res_u.fail.file_attributes;
1544       post_op_file->attributes_follow = 0;
1545     
1546       mp_file = fh3_to_mp(file);

________________________________________________________________________________________________________
*** CID 1264755:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1592 in am_nfs3_readdir_3_svc()
1586       am_count3 count = argp->count;
1587       am_post_op_attr *post_op_dir;
1588       am_node *mp;
1589       int retry;
1590     
1591       if (amuDebug(D_TRACE))
>>>     CID 1264755:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "readdir_3:");".
1592         plog(XLOG_DEBUG, "readdir_3:");
1593     
1594       memcpy(&cookieverf, &argp->cookieverf, sizeof(am_cookieverf3));
1595     
1596       mp = fh3_to_mp3(dir, &retry, VLOOK_CREATE);
1597       if (mp == NULL) {
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1610 in am_nfs3_readdir_3_svc()
1604         result.status = nfs_error(retry);
1605       } else {
1606         am_dirlist3 *list = &result.res_u.ok.reply;
1607         am_nfsstat3 status;
1608     
1609         if (amuDebug(D_TRACE))
>>>     CID 1264755:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\treaddir_3(%s)",...".
1610           plog(XLOG_DEBUG, "\treaddir_3(%s)", mp->am_path);
1611     
1612         status = mp->am_al->al_mnt->mf_ops->readdir(mp,
1613     					(voidp)&cookie, list, entries, count);
1614         if (status == 0) {
1615           post_op_dir = &result.res_u.ok.dir_attributes;

________________________________________________________________________________________________________
*** CID 1264756:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1387 in am_nfs3_mkdir_3_svc()
1381     
1382       am_nfs_fh3 *dir = (am_nfs_fh3 *) &argp->where.dir;
1383       am_pre_op_attr *pre_op_dir = &result.res_u.fail.dir_wcc.before;
1384       am_post_op_attr *post_op_dir = &result.res_u.fail.dir_wcc.after;
1385     
1386       if (amuDebug(D_TRACE))
>>>     CID 1264756:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "mkdir_3:");".
1387         plog(XLOG_DEBUG, "mkdir_3:");
1388     
1389       result.status = return_estale_or_rofs(dir, pre_op_dir, post_op_dir);
1390     
1391       return &result;
1392     }

________________________________________________________________________________________________________
*** CID 1264757:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1421 in am_nfs3_mknod_3_svc()
1415     
1416       am_nfs_fh3 *dir = (am_nfs_fh3 *) &argp->where.dir;
1417       am_pre_op_attr *pre_op_dir = &result.res_u.fail.dir_wcc.before;
1418       am_post_op_attr *post_op_dir =  &result.res_u.fail.dir_wcc.after;
1419     
1420       if (amuDebug(D_TRACE))
>>>     CID 1264757:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "mknod_3:");".
1421         plog(XLOG_DEBUG, "mknod_3:");
1422     
1423       result.status = return_estale_or_rofs(dir, pre_op_dir, post_op_dir);
1424       return &result;
1425     }
1426     

________________________________________________________________________________________________________
*** CID 1264758:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1679 in am_nfs3_fsstat_3_svc()
1673       am_nfs_fh3 *fsroot = (am_nfs_fh3 *) &argp->fsroot;
1674       am_post_op_attr *post_op_fsroot;
1675       am_node *mp;
1676       int retry;
1677      
1678       if (amuDebug(D_TRACE))
>>>     CID 1264758:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "fsstat_3:");".
1679         plog(XLOG_DEBUG, "fsstat_3:");
1680     
1681       mp = fh3_to_mp3(fsroot, &retry, VLOOK_CREATE);
1682       if (!mp) {
1683         if (retry < 0) {
1684           amd_stats.d_drops++;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1698 in am_nfs3_fsstat_3_svc()
1692         u_int blocks, bfree, bavail;
1693         nfsfattr *fattr;
1694         am_fattr3 *fattr3;
1695         mntent_t mnt;
1696     
1697         if (amuDebug(D_TRACE))
>>>     CID 1264758:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tfsstat_3(%s)", ...".
1698           plog(XLOG_DEBUG, "\tfsstat_3(%s)", mp->am_path);
1699     
1700         fattr = &mp->am_fattr;
1701         post_op_fsroot = &ok->obj_attributes;
1702         post_op_fsroot->attributes_follow = 1;
1703         fattr3 = &post_op_fsroot->am_post_op_attr_u.attributes;

________________________________________________________________________________________________________
*** CID 1264759:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1755 in am_nfs3_fsinfo_3_svc()
1749       am_nfs_fh3 *fsroot = (am_nfs_fh3 *) &argp->fsroot;
1750       am_post_op_attr *post_op_fsroot;
1751       am_node *mp;
1752       int retry;
1753     
1754       if (amuDebug(D_TRACE))
>>>     CID 1264759:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "fsinfo_3:");".
1755         plog(XLOG_DEBUG, "fsinfo_3:");
1756     
1757       mp = fh3_to_mp3(fsroot, &retry, VLOOK_CREATE);
1758       if (!mp) {
1759         if (retry < 0) {
1760           amd_stats.d_drops++;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1772 in am_nfs3_fsinfo_3_svc()
1766       } else {
1767         am_FSINFO3resok *ok = &result.res_u.ok;
1768         nfsfattr *fattr;
1769         am_fattr3 *fattr3;
1770     
1771         if (amuDebug(D_TRACE))
>>>     CID 1264759:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tfsinfo_3(%s)", ...".
1772           plog(XLOG_DEBUG, "\tfsinfo_3(%s)", mp->am_path);
1773     
1774         fattr = &mp->am_fattr;
1775         post_op_fsroot = &ok->obj_attributes;
1776         post_op_fsroot->attributes_follow = 1;
1777         fattr3 = &post_op_fsroot->am_post_op_attr_u.attributes;

________________________________________________________________________________________________________
*** CID 1264760:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1087 in am_nfs3_getattr_3_svc()
1081       nfsfattr *fattr;
1082       am_node *mp;
1083       int retry = 0;
1084       time_t now = clocktime(NULL);
1085     
1086       if (amuDebug(D_TRACE))
>>>     CID 1264760:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "getattr_3:");".
1087         plog(XLOG_DEBUG, "getattr_3:");
1088     
1089       mp = fh3_to_mp3(fh, &retry, VLOOK_CREATE);
1090       if (!mp) {
1091         if (amuDebug(D_TRACE))
1092           plog(XLOG_DEBUG, "\tretry=%d", retry);
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1092 in am_nfs3_getattr_3_svc()
1086       if (amuDebug(D_TRACE))
1087         plog(XLOG_DEBUG, "getattr_3:");
1088     
1089       mp = fh3_to_mp3(fh, &retry, VLOOK_CREATE);
1090       if (!mp) {
1091         if (amuDebug(D_TRACE))
>>>     CID 1264760:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tretry=%d", retry);".
1092           plog(XLOG_DEBUG, "\tretry=%d", retry);
1093     
1094         if (retry < 0) {
1095           amd_stats.d_drops++;
1096           return 0;
1097         }
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1109 in am_nfs3_getattr_3_svc()
1103       fattr3 = (am_fattr3 *) &result.res_u.ok.obj_attributes;
1104       fattr_to_fattr3(fattr, fattr3);
1105     
1106       result.status = AM_NFS3_OK;
1107     
1108       if (amuDebug(D_TRACE))
>>>     CID 1264760:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tstat(%s), size ...".
1109         plog(XLOG_DEBUG, "\tstat(%s), size = %llu, mtime=%d.%d",
1110     	 mp->am_path,
1111     	 (unsigned long long) fattr3->size,
1112     	 (u_int) fattr3->mtime.seconds,
1113     	 (u_int) fattr3->mtime.nseconds);
1114     

________________________________________________________________________________________________________
*** CID 1264761:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1370 in am_nfs3_create_3_svc()
1364     
1365       am_nfs_fh3 *dir = (am_nfs_fh3 *) &argp->where.dir;
1366       am_pre_op_attr *pre_op_dir = &result.res_u.fail.dir_wcc.before;
1367       am_post_op_attr *post_op_dir = &result.res_u.fail.dir_wcc.after;
1368     
1369       if (amuDebug(D_TRACE))
>>>     CID 1264761:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "create_3:");".
1370         plog(XLOG_DEBUG, "create_3:");
1371     
1372       result.status = return_estale_or_rofs(dir, pre_op_dir, post_op_dir);
1373     
1374       return &result;
1375     }

________________________________________________________________________________________________________
*** CID 1264762:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1325 in am_nfs3_read_3_svc()
1319     
1320       am_nfs_fh3 *file = (am_nfs_fh3 *) &argp->file;
1321       am_post_op_attr *post_op_file;
1322       am_node *mp;
1323     
1324       if (amuDebug(D_TRACE))
>>>     CID 1264762:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "read_3:");".
1325         plog(XLOG_DEBUG, "read_3:");
1326     
1327       post_op_file = &result.res_u.fail.file_attributes;
1328       result.status = nfs_error(EACCES);
1329     
1330       mp = fh3_to_mp(file);

________________________________________________________________________________________________________
*** CID 1264763:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1154 in am_nfs3_lookup_3_svc()
1148       am_node *mp;
1149       int retry;
1150       uid_t uid;
1151       gid_t gid;
1152     
1153       if (amuDebug(D_TRACE))
>>>     CID 1264763:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "lookup_3:");".
1154         plog(XLOG_DEBUG, "lookup_3:");
1155     
1156       /* finally, find the effective uid/gid from RPC request */
1157       if (getcreds(rqstp, &uid, &gid, nfsxprt) < 0)
1158         plog(XLOG_ERROR, "cannot get uid/gid from RPC credentials");
1159       xsnprintf(opt_uid, sizeof(uid_str), "%d", (int) uid);
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1191 in am_nfs3_lookup_3_svc()
1185     
1186         post_op_obj->attributes_follow = 0;
1187     
1188         name = argp->what.name;
1189     
1190         if (amuDebug(D_TRACE))
>>>     CID 1264763:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tlookup_3(%s, %s...".
1191           plog(XLOG_DEBUG, "\tlookup_3(%s, %s)", mp->am_path, name);
1192     
1193         ap = mp->am_al->al_mnt->mf_ops->lookup_child(mp, name, &error, VLOOK_CREATE);
1194         if (ap && error < 0)
1195           ap = mp->am_al->al_mnt->mf_ops->mount_child(ap, &error);
1196         if (ap == 0) {

________________________________________________________________________________________________________
*** CID 1264764:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1813 in am_nfs3_pathconf_3_svc()
1807       am_nfs_fh3 *obj = (am_nfs_fh3 *) &argp->object;
1808       am_post_op_attr *post_op_obj;
1809       am_node *mp;
1810       int retry;
1811     
1812       if (amuDebug(D_TRACE))
>>>     CID 1264764:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "pathconf_3:");".
1813         plog(XLOG_DEBUG, "pathconf_3:");
1814     
1815       mp = fh3_to_mp3(obj, &retry, VLOOK_CREATE);
1816       if (!mp) {
1817         if (retry < 0) {
1818           amd_stats.d_drops++;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1830 in am_nfs3_pathconf_3_svc()
1824       } else {
1825         am_PATHCONF3resok *ok = &result.res_u.ok;
1826         nfsfattr *fattr;
1827         am_fattr3 *fattr3;
1828     
1829         if (amuDebug(D_TRACE))
>>>     CID 1264764:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tpathconf_3(%s)"...".
1830           plog(XLOG_DEBUG, "\tpathconf_3(%s)", mp->am_path);
1831     
1832         fattr = &mp->am_fattr;
1833         post_op_obj = &ok->obj_attributes;
1834         post_op_obj->attributes_follow = 1;
1835         fattr3 = &post_op_obj->am_post_op_attr_u.attributes;

________________________________________________________________________________________________________
*** CID 1264765:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1862 in am_nfs3_commit_3_svc()
1856     
1857       am_nfs_fh3 *file = (am_nfs_fh3 *) &argp->file;
1858       am_pre_op_attr *pre_op_file = &result.res_u.fail.file_wcc.before;
1859       am_post_op_attr *post_op_file = &result.res_u.fail.file_wcc.after;
1860     
1861       if (amuDebug(D_TRACE))
>>>     CID 1264765:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "commit_3:");".
1862         plog(XLOG_DEBUG, "commit_3:");
1863     
1864       result.status = return_estale_or_rofs(file, pre_op_file, post_op_file);
1865     
1866       return &result;
1867     }

________________________________________________________________________________________________________
*** CID 1264766:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 2569 in xdr_am_MKDIR3args()
2563     }
2564     
2565     bool_t
2566     xdr_am_MKDIR3args(XDR *xdrs, am_MKDIR3args *objp)
2567     {
2568       if (amuDebug(D_XDRTRACE))
>>>     CID 1264766:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, ":");".
2569         plog(XLOG_DEBUG, ":");
2570     
2571       if (!xdr_am_diropargs3(xdrs, &objp->where))
2572         return FALSE;
2573       if (!xdr_am_sattr3(xdrs, &objp->attributes))
2574         return FALSE;

________________________________________________________________________________________________________
*** CID 1264767:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 1494 in xdr_am_ACCESS3args()
1488     }
1489     
1490     bool_t
1491     xdr_am_ACCESS3args(XDR *xdrs, am_ACCESS3args *objp)
1492     {
1493       if (amuDebug(D_XDRTRACE))
>>>     CID 1264767:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "xdr_am_ACCESS3arg...".
1494         plog(XLOG_DEBUG, "xdr_am_ACCESS3args:");
1495     
1496       if (!xdr_am_nfs_fh3(xdrs, &objp->object))
1497         return FALSE;
1498       if (!xdr_u_int(xdrs, &objp->access))
1499         return FALSE;

________________________________________________________________________________________________________
*** CID 1264768:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 2216 in xdr_am_PATHCONF3resok()
2210     bool_t
2211     xdr_am_PATHCONF3resok(XDR *xdrs, am_PATHCONF3resok *objp)
2212     {
2213       register int32_t *buf;
2214     
2215       if (amuDebug(D_XDRTRACE))
>>>     CID 1264768:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "xdr_am_PATHCONF3r...".
2216         plog(XLOG_DEBUG, "xdr_am_PATHCONF3resok:");
2217     
2218       if (xdrs->x_op == XDR_ENCODE) {
2219         if (!xdr_am_post_op_attr(xdrs, &objp->obj_attributes))
2220           return FALSE;
2221         buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT);

________________________________________________________________________________________________________
*** CID 1264769:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 1462 in xdr_am_COMMIT3resfail()
1456     }
1457     
1458     bool_t
1459     xdr_am_COMMIT3resfail(XDR *xdrs, am_COMMIT3resfail *objp)
1460     {
1461       if (amuDebug(D_XDRTRACE))
>>>     CID 1264769:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "xdr_am_COMMIT3res...".
1462         plog(XLOG_DEBUG, "xdr_am_COMMIT3resfail:");
1463     
1464       if (!xdr_am_wcc_data(xdrs, &objp->file_wcc))
1465         return FALSE;
1466       return TRUE;
1467     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/1448?tab=overview

To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://scan.coverity.com/subscriptions/edit?email=coverity-updates%40netbsd.org&token=487286ca1a9a4f4bd485d16f66b5e782 .



Home | Main Index | Thread Index | Old Index