On Tue, Feb 17, 2009, marcandre.lureau@xxxxxxxxx wrote: > diff --git a/sbc/sbc.c b/sbc/sbc.c > index e2e7c61..a33ed57 100644 > --- a/sbc/sbc.c > +++ b/sbc/sbc.c > @@ -985,7 +985,7 @@ int sbc_decode(sbc_t *sbc, void *input, int input_len, void *output, > char *ptr; > int i, ch, framelen, samples; > > - if (!sbc && !input) > + if (!sbc || !input) > return -EIO; > > priv = sbc->priv; > @@ -1053,7 +1053,7 @@ int sbc_encode(sbc_t *sbc, void *input, int input_len, void *output, > const uint8_t *pcm, int16_t X[2][SBC_X_BUFFER_SIZE], > int nsamples, int nchannels); > > - if (!sbc && !input) > + if (!sbc || !input) > return -EIO; > > priv = sbc->priv; This one's now also pushed upstream. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html