Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Ionut Nicu <ionut.nicu@mindbit.ro>
To: "Ramirez Luna, Omar" <omar.ramirez@ti.com>
Cc: Greg Kroah-Hartman <greg@kroah.com>,
	Sapiens Rene <rene.sapiens@ti.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	Fernando Guzman Lugo <x0095840@ti.com>,
	Felipe Contreras <felipe.contreras@gmail.com>,
	linux-omap <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 2/2] staging: tidspbridge: rmgr code cleanup
Date: Fri, 24 Dec 2010 13:33:38 +0200	[thread overview]
Message-ID: <1293190418.9114.5.camel@atlantis.mindbit.ro> (raw)
In-Reply-To: <AANLkTikMD-pEQNNNKOx+1kZt=y896Ciz_kU60NsNzhGJ@mail.gmail.com>

Hi Omar,

On Wed, 2010-12-22 at 14:52 -0600, Ramirez Luna, Omar wrote:
> Hi Ionut,
> 
> On Thu, Dec 9, 2010 at 3:47 PM, Ionut Nicu <ionut.nicu@gmail.com> wrote:
> > Reorganized some code in the rmgr module to increase
> > its readability. No functional changes were done.
> >
> > Signed-off-by: Ionut Nicu <ionut.nicu@mindbit.ro>
> > ---
> >  drivers/staging/tidspbridge/rmgr/drv.c  |  171 +++++++++-----------
> >  drivers/staging/tidspbridge/rmgr/node.c |   81 +++++-----
> >  drivers/staging/tidspbridge/rmgr/rmm.c  |  266 +++++++++++++-----------------
> >  3 files changed, 229 insertions(+), 289 deletions(-)
> >
> > +
> > +       /* Update the Driver Object List */
> > +       list_add_tail((struct list_head *)pszdev_node,
> > +                       &pdrv_object->dev_node_string);
> 
> I'm not quite comfortable casting to list_head ptr, given that there
> is already a member of that type, if the struct type of pszdev_node is
> moved around and the first member changes, there should be issues.
> 
> Any reason to use them in this patch?
> 

You are right, it's useless and error prone. I will fix this and the
other occurrences.

Regards,
Ionut.


      reply	other threads:[~2010-12-24 11:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09 21:47 [PATCH 0/2] staging: tidspbridge: various cleanups Ionut Nicu
2010-12-09 21:47 ` [PATCH 1/2] staging: tidspbridge: rmgr/node.c code cleanup Ionut Nicu
2010-12-09 22:22   ` Ionut Nicu
2010-12-09 23:02     ` Felipe Contreras
2010-12-09 23:03     ` Ramirez Luna, Omar
2010-12-12 14:20       ` Ionut Nicu
2010-12-14  4:01         ` Ramirez Luna, Omar
2010-12-22 18:07   ` Ramirez Luna, Omar
2010-12-09 21:47 ` [PATCH 2/2] staging: tidspbridge: rmgr " Ionut Nicu
2010-12-22 20:52   ` Ramirez Luna, Omar
2010-12-24 11:33     ` Ionut Nicu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1293190418.9114.5.camel@atlantis.mindbit.ro \
    --to=ionut.nicu@mindbit.ro \
    --cc=andy.shevchenko@gmail.com \
    --cc=felipe.contreras@gmail.com \
    --cc=greg@kroah.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=omar.ramirez@ti.com \
    --cc=rene.sapiens@ti.com \
    --cc=x0095840@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox