64a591e6 | 09-Aug-2017 |
Markus Elfring <elfring@users.sourceforge.net> |
ALSA: emux: Delete two error messages for a failed memory allocation in snd_emux_create_port()
Omit extra messages for a memory allocation failure in this function.
This issue was detected by using
ALSA: emux: Delete two error messages for a failed memory allocation in snd_emux_create_port()
Omit extra messages for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
|
fbc020b4 | 09-Aug-2017 |
Markus Elfring <elfring@users.sourceforge.net> |
ALSA: emux: Adjust four checks for null pointers
MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
The script “checkpatch.pl” pointed information out like th
ALSA: emux: Adjust four checks for null pointers
MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
The script “checkpatch.pl” pointed information out like the following.
Comparison to NULL could be written !…
Thus fix affected source code places.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
|
949a0c23 | 09-Aug-2017 |
Markus Elfring <elfring@users.sourceforge.net> |
ALSA: emux: Improve a size determination in two functions
Replace the specification of data types by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size de
ALSA: emux: Improve a size determination in two functions
Replace the specification of data types by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
|