X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fncpfs%2Fmmap.c;h=5d8dcb9ee326ffcbb3b747666a9f44f1431f7bb8;hb=1df5a8d004f64b1aa3fb93e0556886ba00ebc979;hp=a94473d3072c606784f86cb058f5371e8b183ff1;hpb=e6f194d8f6f50da6837af637b2fd839c34185f7a;p=linux-2.6 diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c index a94473d307..5d8dcb9ee3 100644 --- a/fs/ncpfs/mmap.c +++ b/fs/ncpfs/mmap.c @@ -50,10 +50,6 @@ static int ncp_file_mmap_fault(struct vm_area_struct *area, pos = vmf->pgoff << PAGE_SHIFT; count = PAGE_SIZE; - if ((unsigned long)vmf->virtual_address + PAGE_SIZE > area->vm_end) { - WARN_ON(1); /* shouldn't happen? */ - count = area->vm_end - (unsigned long)vmf->virtual_address; - } /* what we can read in one go */ bufsize = NCP_SERVER(inode)->buffer_size;