X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fsysfs%2Ffile.c;h=72cd7076cc50b7e243f8c6732cbd43c177f60e79;hb=2cf7311f007833d5818fc9241c09a372c0325a4a;hp=159d99f06a3fa50f6cce1ef11242441f57367fbb;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 159d99f06..72cd7076c 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -89,7 +89,7 @@ static int fill_read_buffer(struct file * file, struct sysfs_buffer * buffer) return -ENOMEM; count = ops->show(kobj,attr,buffer->page); - BUG_ON(count > (ssize_t)PAGE_SIZE); + BUG_ON(count > PAGE_SIZE); if (count >= 0) buffer->count = count; else