summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-09-02 12:43:02 +0300
committerToomas Soome <tsoome@me.com>2020-09-08 07:43:30 +0300
commit712669c9fa9278704a4ccefe1d96acaf29397d36 (patch)
tree3888a7940db861d94b9e78bbe44977a53b044c05
parente075c017fe4c71cde62297bcc90d3411c0f4ad1d (diff)
downloadillumos-joyent-712669c9fa9278704a4ccefe1d96acaf29397d36.tar.gz
13103 zfs: zvol_strategy() warn: unsigned 'off' is never less than zero
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Igor Kozhukhov <igor@dilos.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/fs/zfs/zvol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/zfs/zvol.c b/usr/src/uts/common/fs/zfs/zvol.c
index 83dbf67e98..02eb0b8e1a 100644
--- a/usr/src/uts/common/fs/zfs/zvol.c
+++ b/usr/src/uts/common/fs/zfs/zvol.c
@@ -1226,7 +1226,7 @@ zvol_strategy(buf_t *bp)
addr = bp->b_un.b_addr;
resid = bp->b_bcount;
- if (resid > 0 && (off < 0 || off >= volsize)) {
+ if (resid > 0 && off >= volsize) {
bioerror(bp, EIO);
biodone(bp);
return (0);