Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Alexander Inyukhin <shurick@sectorb.msk.ru>
To: petkovbb@gmail.com
Cc: linux-ide@vger.kernel.org, Tejun Heo <tj@kernel.org>,
	Jens Axboe <jens.axboe@oracle.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: [patch] cdrom: Handle TOC
Date: Thu, 7 Aug 2008 21:11:17 +0400	[thread overview]
Message-ID: <20080807171117.GA15748@shurick.s2s.msu.ru> (raw)
In-Reply-To: <20080807041837.GA2394@gollum.tnic>

On Thu, Aug 07, 2008 at 06:18:37AM +0200, Borislav Petkov wrote:
> On Thu, Aug 07, 2008 at 01:03:58AM +0400, Alexander Inyukhin wrote:
> >  	if (cdo->open == NULL || cdo->release == NULL)
> >  		return -EINVAL;
> > +	if (cdo->audio_ioctl == NULL)
> > +		return -EINVAL;
> 
> How about putting all checks above together:
> 	if (!cdo->open || !cdo->release || !cdo->audio_ioctl)
> 		return -EINVAL;
> 
> ?

I thought to place a warning message here and it is easier to blame separate check.
Feel free to modify these lines.

      reply	other threads:[~2008-08-07 17:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 21:03 [patch] cdrom: Handle TOC Alexander Inyukhin
2008-08-06 23:11 ` Tejun Heo
2008-08-07  4:23   ` Borislav Petkov
2008-08-07  4:18 ` Borislav Petkov
2008-08-07 17:11   ` Alexander Inyukhin [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=20080807171117.GA15748@shurick.s2s.msu.ru \
    --to=shurick@sectorb.msk.ru \
    --cc=akpm@linux-foundation.org \
    --cc=bzolnier@gmail.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=petkovbb@gmail.com \
    --cc=tj@kernel.org \
    /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