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-amd64-user



Hi,

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

171 new defect(s) introduced to NetBSD-amd64-user found with Coverity Scan.
43 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 171 defect(s)


** CID 1264751:  Unchecked return value  (CHECKED_RETURN)
/home/phil/cov/xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_display.c: 6023 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: 1752 in am_nfs3_fsinfo_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1769 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: 1810 in am_nfs3_pathconf_3_svc()
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1827 in am_nfs3_pathconf_3_svc()

** CID 1264765:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1859 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 1264770:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 1563 in xdr_am_GETATTR3resok()


________________________________________________________________________________________________________
*** CID 1264751:  Unchecked return value  (CHECKED_RETURN)
/home/phil/cov/xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_display.c: 6023 in sna_mode_enable()
6017     		if (!crtc->enabled)
6018     			continue;
6019     
6020     		if (crtc->mode.Clock == 0)
6021     			continue;
6022     
>>>     CID 1264751:  Unchecked return value  (CHECKED_RETURN)
>>>     No check of the return value of "__sna_crtc_set_mode(crtc)".
6023     		__sna_crtc_set_mode(crtc);
6024     	}
6025     
6026     	update_flush_interval(sna);
6027     	sna_show_cursors(sna->scrn);
6028     	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: 1752 in am_nfs3_fsinfo_3_svc()
1746       am_nfs_fh3 *fsroot = (am_nfs_fh3 *) &argp->fsroot;
1747       am_post_op_attr *post_op_fsroot;
1748       am_node *mp;
1749       int retry;
1750     
1751       if (amuDebug(D_TRACE))
>>>     CID 1264759:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "fsinfo_3:");".
1752         plog(XLOG_DEBUG, "fsinfo_3:");
1753     
1754       mp = fh3_to_mp3(fsroot, &retry, VLOOK_CREATE);
1755       if (!mp) {
1756         if (retry < 0) {
1757           amd_stats.d_drops++;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1769 in am_nfs3_fsinfo_3_svc()
1763       } else {
1764         am_FSINFO3resok *ok = &result.res_u.ok;
1765         nfsfattr *fattr;
1766         am_fattr3 *fattr3;
1767     
1768         if (amuDebug(D_TRACE))
>>>     CID 1264759:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tfsinfo_3(%s)", ...".
1769           plog(XLOG_DEBUG, "\tfsinfo_3(%s)", mp->am_path);
1770     
1771         fattr = &mp->am_fattr;
1772         post_op_fsroot = &ok->obj_attributes;
1773         post_op_fsroot->attributes_follow = 1;
1774         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: 1810 in am_nfs3_pathconf_3_svc()
1804       am_nfs_fh3 *obj = (am_nfs_fh3 *) &argp->object;
1805       am_post_op_attr *post_op_obj;
1806       am_node *mp;
1807       int retry;
1808     
1809       if (amuDebug(D_TRACE))
>>>     CID 1264764:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "pathconf_3:");".
1810         plog(XLOG_DEBUG, "pathconf_3:");
1811     
1812       mp = fh3_to_mp3(obj, &retry, VLOOK_CREATE);
1813       if (!mp) {
1814         if (retry < 0) {
1815           amd_stats.d_drops++;
/external/bsd/am-utils/dist/amd/nfs_subr.c: 1827 in am_nfs3_pathconf_3_svc()
1821       } else {
1822         am_PATHCONF3resok *ok = &result.res_u.ok;
1823         nfsfattr *fattr;
1824         am_fattr3 *fattr3;
1825     
1826         if (amuDebug(D_TRACE))
>>>     CID 1264764:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "\tpathconf_3(%s)"...".
1827           plog(XLOG_DEBUG, "\tpathconf_3(%s)", mp->am_path);
1828     
1829         fattr = &mp->am_fattr;
1830         post_op_obj = &ok->obj_attributes;
1831         post_op_obj->attributes_follow = 1;
1832         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: 1859 in am_nfs3_commit_3_svc()
1853     
1854       am_nfs_fh3 *file = (am_nfs_fh3 *) &argp->file;
1855       am_pre_op_attr *pre_op_file = &result.res_u.fail.file_wcc.before;
1856       am_post_op_attr *post_op_file = &result.res_u.fail.file_wcc.after;
1857     
1858       if (amuDebug(D_TRACE))
>>>     CID 1264765:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "commit_3:");".
1859         plog(XLOG_DEBUG, "commit_3:");
1860     
1861       result.status = return_estale_or_rofs(file, pre_op_file, post_op_file);
1862     
1863       return &result;
1864     }

________________________________________________________________________________________________________
*** 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     }

________________________________________________________________________________________________________
*** CID 1264770:  Logically dead code  (DEADCODE)
/external/bsd/am-utils/dist/libamu/xdr_func.c: 1563 in xdr_am_GETATTR3resok()
1557     }
1558     
1559     bool_t
1560     xdr_am_GETATTR3resok(XDR *xdrs, am_GETATTR3resok *objp)
1561     {
1562       if (amuDebug(D_XDRTRACE))
>>>     CID 1264770:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "plog(32, "xdr_am_GETATTR3re...".
1563         plog(XLOG_DEBUG, "xdr_am_GETATTR3resok:");
1564     
1565       if (!xdr_am_fattr3(xdrs, &objp->obj_attributes))
1566         return FALSE;
1567       return TRUE;
1568     }


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

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



Home | Main Index | Thread Index | Old Index