Fix logic in sanity check
PATCH 1/1 Fix logic in sanity check
Detected by "cppcheck".
This time with "Signed-off-by" line.
--- drivers/media/video/m5mols/m5mols_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/m5mols/m5mols_core.c +1 -1
@@ -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 , ®);
Signature · 1 line
1.7.6.4
Hi Thomas,
Quoted 5 lines · Thomas Jarosch
Detected by "cppcheck".
This time with "Signed-off-by" line.
Signed-off-by Thomas Jarosch <[email protected]>
Quoted 17 lines
--- drivers/media/video/m5mols/m5mols_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/media/video/m5mols/m5mols_core.c +1
-1@@ -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 , ®);
Signature · 2 lines
Regards, Sylwester
Hi,
Quoted 4 lines · Sylwester Nawrocki
Quoted 3 lines · Thomas Jarosch
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.
Quoted 4 lines
Quoted 2 lines
Signed-off-by Thomas Jarosch<[email protected]>
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 ...
Quoted 4 lines
Quoted 4 lines
--- drivers/media/video/m5mols/m5mols_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
--
Thanks,
Sylwester
Hi Sylwester,
Quoted 9 lines · 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 ...
Quoted 4 lines
Quoted 4 lines
---
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
Hi Thomas,
Quoted 6 lines · Thomas Jarosch
Quoted 5 lines · 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 ...
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
---
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.
Signature · 2 lines
Thanks! Sylwester
Quoted 3 lines
Cheers,
Thomas