summaryrefslogtreecommitdiff
path: root/fs/nfs/flexfilelayout
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-08-31 10:53:43 +0800
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-09-01 15:19:40 -0700
commit4a3e5779cf6c6d557682b499c2190ad04c80c6fd (patch)
treeab9c928ea898d763cfc75040416d689797fc6388 /fs/nfs/flexfilelayout
parent4a70316caef7d158445e672e146eb9f1b8c1aeee (diff)
nfs: Remove unneeded checking of the return value from scnprintf
The return value from scnprintf always less than the buffer length. So, result >= len always false. This patch removes those checking. int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) { int i; i = vsnprintf(buf, size, fmt, args); if (likely(i < size)) return i; if (size != 0) return size - 1; return 0; } Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/flexfilelayout')
0 files changed, 0 insertions, 0 deletions