Re: [PATCH v22 2/3] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/17/2018 05:27 PM, Pankaj Gupta wrote:
On 01/17/2018 04:21 PM, Pankaj Gupta wrote:

o.k  you have initialize "err = -ENOMEM;"

Remove these four lines.
- kfree(names);
  -        kfree(callbacks);
  -        kfree(vqs);
  -        return 0;

  +        err = 0;              // if executed without any error


OK, thanks. "error = 0" is not needed actually.

Best,
Wei

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux