Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-04 Thread Rickard Strandqvist
Hi Thanks for your replies, I've included the changes you suggested in my patch. Although I guess functionality r8712_set_key () is already done then. I have also received several complaints already on the patch is not broken down by the type of errors they contain, and that this is clearly desc

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Christian Engelmayer
On Sat, 3 May 2014 23:06:50 +0300, Dan Carpenter wrote: > Many of my other comments apply. > > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > index 23d539d..1d4475d 100644 > > --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Dan Carpenter
Many of my other comments apply. > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > index 23d539d..1d4475d 100644 > --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > @@ -170,7 +

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 06:12:11PM +0200, Rickard Strandqvist wrote: > Hi > > The static code analysis program called cppcheck. > http://cppcheck.sourceforge.net/ > > I found code that I think are bugs, or at least inappropriate or > unnecessary code, in the files: > drivers/staging/tidspbridge/p

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Dan Carpenter
This patch wasn't sent in the correct way. The subject should be: [PATCH] staging: tidspbridge: silence some uninitialized variable warnings On Sat, May 03, 2014 at 06:12:11PM +0200, Rickard Strandqvist wrote: > Hi > > The static code analysis program called cppcheck. > http://cppcheck.sourcefo

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 06:33:11PM +0200, Rickard Strandqvist wrote: > Hi > > The static code analysis program called cppcheck. > http://cppcheck.sourceforge.net/ > > I found code that I think are bugs, or at least inappropriate or > unnecessary code, in the files: > drivers/staging/rtl8712/rtl87

Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Rickard Strandqvist
Hi The static code analysis program called cppcheck. http://cppcheck.sourceforge.net/ I found code that I think are bugs, or at least inappropriate or unnecessary code, in the files: drivers/staging/tidspbridge/pmgr/dspapi.c drivers/staging/tidspbridge/rmgr/node.c I have created a patch, and in

Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Rickard Strandqvist
Hi The static code analysis program called cppcheck. http://cppcheck.sourceforge.net/ I found code that I think are bugs, or at least inappropriate or unnecessary code, in the files: drivers/staging/rtl8712/rtl871x_ioctl_linux.c drivers/staging/rtl8712/rtl871x_mlme.c drivers/staging/rtl8712/usb_i