Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1685007
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] staging: bcm2835-audio: replace BUG_ON with WARN_ON |
| Date | 2017-07-11 14:30 +0200 |
| Message-ID | <u22sF-2cL-11@gated-at.bofh.it> (permalink) |
| References | <u22sF-2cL-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jul 11, 2017 at 04:54:24PM +0530, karuna grewal wrote: > replace BUG_ON with WARN_ON as pointed out by checkpatch > > Signed-off-by: Karuna Grewal <karunagrewal98@gmail.com> I can not accept patches sent in html format... > --- > drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c b/ > drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c > index 5ff4b1c..30d310b 100644 > --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c > +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c > @@ -93,7 +93,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, > if (mutex_lock_interruptible(&chip->audio_mutex)) > return -EINTR; > > - BUG_ON(!chip && !(chip->avail_substreams & AVAIL_SUBSTREAMS_MASK)); > + WARN_ON(!chip && !(chip->avail_substreams & AVAIL_SUBSTREAMS_MASK)); Why will this make things better? thanks, greg k-h
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] staging: bcm2835-audio: replace BUG_ON with WARN_ON Greg KH <gregkh@linuxfoundation.org> - 2017-07-11 14:30 +0200
csiph-web