lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 9 Aug 2010 16:59:16 +0800
From:	Axel Lin <axel.lin@...il.com>
To:	Liam Girdwood <lrg@...mlogic.co.uk>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Marek Szyprowski <m.szyprowski@...sung.com>,
	Kyungmin Park <kyungmin.park@...sung.com>
Subject: Re: [PATCH 1/2 RESEND] regulator: lp3971 - remove unnecessary ret 
	value checking in lp3971_i2c_write()

2010/8/9 Liam Girdwood <lrg@...mlogic.co.uk>:
> On Fri, 2010-08-06 at 08:09 +0800, Axel Lin wrote:
>> We already check count value before calling i2c_smbus_read_byte_data(),
>> no need to check it again.
>>
>> Signed-off-by: Axel Lin <axel.lin@...il.com>
>> Acked-by: Mark Brown <broonie@...nsource.wolfsonmicro.com>
>> ---
>> This resend adds regulator: prefix in the subject line.
>>
>>  drivers/regulator/lp3971.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c
>> index d4d9822..3bb82b6 100644
>> --- a/drivers/regulator/lp3971.c
>> +++ b/drivers/regulator/lp3971.c
>> @@ -377,7 +377,7 @@ static int lp3971_i2c_read(struct i2c_client *i2c, char reg, int count,
>>       if (count != 1)
>>               return -EIO;
>>       ret = i2c_smbus_read_byte_data(i2c, reg);
>> -     if (ret < 0 || count != 1)
>> +     if (ret < 0)
>>               return -EIO;
>>
>>       *dest = ret;
>
> Applied 1/2 only as 2/2 is the same patch.
Ooops. My bad. I copied the same patch for patch 1/2 and 1/2.
I'll resend it now.
patch tiltle: [PATCH RESEND again] regulator: lp3971 - remove
unnecessary ret value checking in lp3971_i2c_write()

Regards,
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ