lkml.org 
[lkml]   [2013]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 3/5] vmcore: Introduce remap_oldmem_pfn_range()
On Sat, 8 Jun 2013 11:38:00 +0400
Maxim Uvarov <muvarov@gmail.com> wrote:

[snip]

> > +static int copy_to(void *target, void *src, size_t size, int
> > userbuf) +{
> > + if (userbuf) {
> > + if (copy_to_user(target, src, size))
> > + return -EFAULT;
> > + return 0;
> > + } else {
> > + memcpy(target, src, size);
> > + return 0;
> > + }
> > +}
> >
>
> It is better to do return 0 in the end of function.

Sure, I will change that.

Thanks!
Michael



\
 
 \ /
  Last update: 2013-06-10 10:41    [W:0.235 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site