public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH resent] Fix logic in sanity check
@ 2011-10-15 21:38 Thomas Jarosch
  2011-11-04  9:16 ` Sylwester Nawrocki
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Jarosch @ 2011-10-15 21:38 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media

Detected by "cppcheck".

This time with "Signed-off-by" line.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
---
 drivers/media/video/m5mols/m5mols_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/m5mols/m5mols_core.c b/drivers/media/video/m5mols/m5mols_core.c
index fb8e4a7..e485e9e 100644
--- a/drivers/media/video/m5mols/m5mols_core.c
+++ b/drivers/media/video/m5mols/m5mols_core.c
@@ -333,7 +333,7 @@ int m5mols_mode(struct m5mols_info *info, u8 mode)
 	int ret = -EINVAL;
 	u8 reg;
 
-	if (mode < REG_PARAMETER && mode > REG_CAPTURE)
+	if (mode < REG_PARAMETER || mode > REG_CAPTURE)
 		return ret;
 
 	ret = m5mols_read_u8(sd, SYSTEM_SYSMODE, &reg);
-- 
1.7.6.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH resent] Fix logic in sanity check
  2011-10-15 21:38 [PATCH resent] Fix logic in sanity check Thomas Jarosch
@ 2011-11-04  9:16 ` Sylwester Nawrocki
  2011-11-20 17:26   ` Sylwester Nawrocki
  0 siblings, 1 reply; 5+ messages in thread
From: Sylwester Nawrocki @ 2011-11-04  9:16 UTC (permalink / raw)
  To: Thomas Jarosch
  Cc: Mauro Carvalho Chehab, linux-media,
	HeungJun Kim/Mobile S/W Platform Lab(DMC)/E3

Hi Thomas,

On 10/15/2011 11:38 PM, Thomas Jarosch wrote:
> Detected by "cppcheck".
> 
> This time with "Signed-off-by" line.
> 
> Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>

Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

> ---
>  drivers/media/video/m5mols/m5mols_core.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/media/video/m5mols/m5mols_core.c b/drivers/media/video/m5mols/m5mols_core.c
> index fb8e4a7..e485e9e 100644
> --- a/drivers/media/video/m5mols/m5mols_core.c
> +++ b/drivers/media/video/m5mols/m5mols_core.c
> @@ -333,7 +333,7 @@ int m5mols_mode(struct m5mols_info *info, u8 mode)
>  	int ret = -EINVAL;
>  	u8 reg;
>  
> -	if (mode < REG_PARAMETER && mode > REG_CAPTURE)
> +	if (mode < REG_PARAMETER || mode > REG_CAPTURE)
>  		return ret;
>  
>  	ret = m5mols_read_u8(sd, SYSTEM_SYSMODE, &reg);

-- 
Regards,
Sylwester

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH resent] Fix logic in sanity check
  2011-11-04  9:16 ` Sylwester Nawrocki
@ 2011-11-20 17:26   ` Sylwester Nawrocki
  2011-11-29 12:26     ` Thomas Jarosch
  0 siblings, 1 reply; 5+ messages in thread
From: Sylwester Nawrocki @ 2011-11-20 17:26 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: Thomas Jarosch, Mauro Carvalho Chehab, linux-media,
	HeungJun Kim/Mobile S/W Platform Lab(DMC)/E3

Hi,

On 11/04/2011 10:16 AM, Sylwester Nawrocki wrote:
> On 10/15/2011 11:38 PM, Thomas Jarosch wrote:
>> Detected by "cppcheck".
>>
>> This time with "Signed-off-by" line.

When a note like this is added, not suitable for the changelog,
it should be placed after your SOB line, and below a line containing
only the "---" marker. Please check with Documentation/SubmittingPatches
for more details.

>>
>> Signed-off-by: Thomas Jarosch<thomas.jarosch@intra2net.com>
> 
> Acked-by: Sylwester Nawrocki<s.nawrocki@samsung.com>

Sorry, I was a bit too quick with this ack.


If you care to resend the patch, please add "m5mols:" as a subsystem name 
in the subject so it looks something like:

[PATCH ...] m5mols: Fix ... 

> 
>> ---
>>   drivers/media/video/m5mols/m5mols_core.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)

--
Thanks,
Sylwester

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH resent] Fix logic in sanity check
  2011-11-20 17:26   ` Sylwester Nawrocki
@ 2011-11-29 12:26     ` Thomas Jarosch
  2011-11-29 16:56       ` Sylwester Nawrocki
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Jarosch @ 2011-11-29 12:26 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: Sylwester Nawrocki, Mauro Carvalho Chehab, linux-media,
	HeungJun Kim/Mobile S/W Platform Lab(DMC)/E3

Hi Sylwester,

On Sunday, 20. November 2011 18:26:13 Sylwester Nawrocki wrote:
> If you care to resend the patch, please add "m5mols:" as a subsystem name
> in the subject so it looks something like:
> 
> [PATCH ...] m5mols: Fix ...
> 
> >> ---
> >> 
> >>   drivers/media/video/m5mols/m5mols_core.c |    2 +-
> >>   1 files changed, 1 insertions(+), 1 deletions(-)

I'll resend something soonish. Though feel free to
fix these cosmetic issues on the fly, too.

Cheers,
Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH resent] Fix logic in sanity check
  2011-11-29 12:26     ` Thomas Jarosch
@ 2011-11-29 16:56       ` Sylwester Nawrocki
  0 siblings, 0 replies; 5+ messages in thread
From: Sylwester Nawrocki @ 2011-11-29 16:56 UTC (permalink / raw)
  To: Thomas Jarosch
  Cc: Mauro Carvalho Chehab, linux-media,
	HeungJun Kim/Mobile S/W Platform Lab(DMC)/E3

Hi Thomas,

On 11/29/2011 01:26 PM, Thomas Jarosch wrote:
> On Sunday, 20. November 2011 18:26:13 Sylwester Nawrocki wrote:
>> If you care to resend the patch, please add "m5mols:" as a subsystem name
>> in the subject so it looks something like:
>>
>> [PATCH ...] m5mols: Fix ...
>>
>>>> ---
>>>>
>>>>   drivers/media/video/m5mols/m5mols_core.c |    2 +-
>>>>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> I'll resend something soonish. Though feel free to
> fix these cosmetic issues on the fly, too.

OK, sorry to bother. I'll pick the patch and amend it when adding
to a pull request.

-- 
Thanks!
Sylwester

> 
> Cheers,
> Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-29 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-15 21:38 [PATCH resent] Fix logic in sanity check Thomas Jarosch
2011-11-04  9:16 ` Sylwester Nawrocki
2011-11-20 17:26   ` Sylwester Nawrocki
2011-11-29 12:26     ` Thomas Jarosch
2011-11-29 16:56       ` Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox