Re: [RFC/RFT] swsusp: image size tunable (was: Re: [PATCH][mm] swsusp: limit image size)

From: Pavel Machek
Date: Sat Dec 10 2005 - 17:59:05 EST


Hi!

> > > +static ssize_t image_size_store(struct subsystem * subsys, const char * buf, size_t n)
> > > +{
> > > + int len;
> > > + char *p;
> > > + unsigned int size;
> > > +
> > > + p = memchr(buf, '\n', n);
> > > + len = p ? p - buf : n;
> >
> > len and p are unused.
>
> Right. BTW, the same applies to resume_store().

Thanks, fixed locally.
Pavel
--
Thanks, Sharp!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/