Re: [PATCH] net: bluetooth: hci_core.c: Cleaning up uninitialized variables

2014-06-01 Thread Rickard Strandqvist
Hi Marcel! Sorry sorry!! This is obviously not necessary! This is code that was left when I tried to split up my original big patch. This was part of code trying to solve a possible divided by 0. int q = 0; ... if (num) q = cnt / num; *quote = q ? q : 1; But I'm not su

Re: [PATCH] net: bluetooth: hci_core.c: Cleaning up uninitialized variables

2014-06-01 Thread Marcel Holtmann
Hi Rickard, > There is a risk that the variable will be used without being initialized. > > This was largely found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist > --- > net/bluetooth/hci_core.c |2 +- > 1 file changed, 1 insertion(+), 1 de

[PATCH] net: bluetooth: hci_core.c: Cleaning up uninitialized variables

2014-06-01 Thread Rickard Strandqvist
There is a risk that the variable will be used without being initialized. This was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- net/bluetooth/hci_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bl