-
Notifications
You must be signed in to change notification settings - Fork 7.5k
drivers: spi: added break in switch of function push_data #13806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13806 +/- ##
==========================================
+ Coverage 52.26% 52.3% +0.03%
==========================================
Files 307 307
Lines 45410 45410
Branches 10504 10504
==========================================
+ Hits 23734 23750 +16
+ Misses 16887 16875 -12
+ Partials 4789 4785 -4
Continue to review full report at Codecov.
|
66dcda2
to
07cdd09
Compare
07cdd09
to
8ff96b5
Compare
According to the Coverity issue 190978 I added a new break statement in case 1 Before I thought that maybe it is good idea to make case 1 by default, but it will be useless, so I decided to add break in case 1 instead of making it by default: Now switch part of the function must run like classic switch. Signed-off-by: Maksim Masalski <[email protected]>
Thanks for the patch. A correct commit title would be:
Regarding reference to Coverity, we use following syntax (that should be in contrib manual software I hope):
Similarly, we have:
To refer to the bug ticket (and have it automagically closed when the PR is merged - not a useless feature for a project with ~1000 pending issue tickets). Just add those before the Signed-off-by line. (You can always grep |
Understand, will read manual more carefully. |
You're doing great actually. I don't know what motivates you to contribute to Zephyr, but I'd say how you do it is an ideal model how a newcomer would start. So, please treat those as friendly hints to make it all even more smooth ;-). |
Thanks for the PR, got a fix in commit 846dfd4. Closing this PR. |
I added a new break statement in case 1
Before I thought that maybe it is good idea to make case 1 by default,
but it will be useless, so I decided to add break in case 1 instead of
making it by default:
Now switch part of the function must run like classic switch.
Coverity-CID: 190978
Fixes: #13842
Signed-off-by: Maksim Masalski [email protected]