The bulk of our code uses 'code = -code' to negate an error code.
Use this, rather than 'code *= -1', as the latter form makes my
head hurt.
Change-Id: I578fbd7c123c37d89ceb1a6373409feb8b619d86
Reviewed-on: http://gerrit.openafs.org/6511
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
}
setuerror(code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
("\n\n\n*** Cache partition is FULL - Decrease cachesize!!! ***\n\n");
setuerror(code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
if (afile->proc) {
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afile->offset += code;
} else {
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
if (afile->proc) {
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afile->offset += code;
} else {
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
if (afile->proc) {
}
setuerror(code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
("\n\n\n*** Cache partition is FULL - Decrease cachesize!!! ***\n\n");
setuerror(code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
if (afile->proc) {
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afs_warnuser
("\n\n\n*** Cache partition is FULL - Decrease cachesize!!! ***\n\n");
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
if (afile->proc) {
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, auio.uio_resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afs_warnuser
("\n\n\n*** Cache partition is FULL - Decrease cachesize!!! ***\n\n");
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, auio.uio_resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afs_warnuser
("\n\n\n*** Cache partition is FULL - Decrease cachesize!!! ***\n\n");
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afile->size = afile->offset;
} else {
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32,
(unsigned int) resid, ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afile->size = afile->offset;
} else {
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, resid,
ICL_TYPE_INT32, code);
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
return code;
afile->offset += code;
} else {
if (code > 0) {
- code *= -1;
+ code = -code;
}
}
if (afile->proc) {