Suppress cppcheck nullPointer error in zfs_write

Newer versions of cppcheck find the potential NULL pointer
bug in zfs_write(). The function is difficult to refactor without
extensive work, so suppress the potential NULL pointer error
which cannot occur for now.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #5882
This commit is contained in:
Giuseppe Di Natale
2017-03-09 17:40:21 -08:00
committed by Brian Behlendorf
parent c3d0438173
commit 589bb918ef
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ lint: cppcheck paxcheck
cppcheck:
@if type cppcheck > /dev/null 2>&1; then \
cppcheck --quiet --force --error-exitcode=2 ${top_srcdir}; \
cppcheck --inline-suppr --quiet --force --error-exitcode=2 \
${top_srcdir}; \
fi
paxcheck: