linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Manu Abraham <abraham.manu@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
	"Igor M. Liplianin" <liplianin@me.by>,
	Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: Copyright issues, do not copy code and add your own copyrights
Date: Tue, 14 Aug 2012 11:21:20 +0200	[thread overview]
Message-ID: <502A1890.2050803@redhat.com> (raw)
In-Reply-To: <CAHFNz9+H9=NJSB6FY7i5bJPhXQL-eCpmomBCqi14hca2q-wVvg@mail.gmail.com>

Hi,

On 08/14/2012 11:10 AM, Manu Abraham wrote:
> Hi,
>
> The subject line says it.
>
> Please fix the offending Copyright header.
>
> Offending one.
> http://git.linuxtv.org/media_tree.git/blob/staging/for_v3.7:/drivers/media/dvb-frontends/stb6100_proc.h
>
> Original one.
> http://git.linuxtv.org/media_tree.git/blob/staging/for_v3.7:/drivers/media/dvb-frontends/stb6100_cfg.h

Or even better, get rid of the offending one and add a i2c_gate_ctrl parameters to the inline
functions defined in stb6100_cfg.h, as this seems a typical case of unnecessary code-duplication.

I would also like to point out that things like these are pretty much wrong:

   27         if (&fe->ops)
   28                 frontend_ops = &fe->ops;
   29         if (&frontend_ops->tuner_ops)
   30                 tuner_ops = &frontend_ops->tuner_ops;
   31         if (tuner_ops->get_state) {

The last check de-references tuner_ops, which only is non-NULL if
fe-ops and fe->ops->tuner_ops are non NULL. So either the last check
needs to be:
              if (tuner_ops && tuner_ops->get_state) {

Or we assume that fe-ops and fe->ops->tuner_ops are always non NULL
when this helper gets called and all the previous checks can be removed.

Regards,

Hans

  reply	other threads:[~2012-08-14  9:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14  9:10 Copyright issues, do not copy code and add your own copyrights Manu Abraham
2012-08-14  9:21 ` Hans de Goede [this message]
2012-08-14  9:42   ` Manu Abraham
2012-08-14 12:35     ` Hans de Goede
2012-08-14 13:09       ` Mauro Carvalho Chehab

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=502A1890.2050803@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=abraham.manu@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=liplianin@me.by \
    --cc=mchehab@redhat.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;
as well as URLs for NNTP newsgroup(s).