|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v5][PATCH 1/2] xen:x86:mm:p2m: introduce set_identity_p2m_entry
On 2014/7/29 16:19, Jan Beulich wrote: On 29.07.14 at 09:35, <tiejun.chen@xxxxxxxxx> wrote:On 2014/7/29 15:05, Jan Beulich wrote:On 29.07.14 at 08:40, <tiejun.chen@xxxxxxxxx> wrote: Thanks your further help. would be a message conveying all information necessary to gain initial understanding of what the issue is.+ goto out;Once again, when error handling is that simple please avoid using "goto".Its make no sense to me. Did you see this function in this same file,Referring to existing bad examples is never going to help. But sometimes someone who are not familiar with this case may have no choice because something is really tricky. Yes, previously I really can't understand what's that code style in xen. So as I remember I ask you guy if xen has checkpatch.pl like Linux, qemu or other stuff, but you didn't reply this point.We just have none, and for the specific case of using or not using "goto" it wouldn't help you anyway.So I have to try following existing codes. Now I'm curious what we should abide.Where is the problem with just writing I doesn't mean I have a problem to write such codes but I think we need an unified coding style. Anyway I can do as you show.
Are you saying this?
if ( !p2m_is_valid(p2mt) ||
!mfn_valid(mfn) ||
(a != p2m_access_rw) )
Thanks
Tiejun
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |