Char: mxser, simplify mxser_get_serial_info
Initialize temp structure directly with proper values without first zeroing it and setting later as suggested by Jan. Signed-off-by: NJiri Slaby <jirislaby@gmail.com> Cc: Jan Engelhardt <jengelh@computergmbh.de> Reviewed-by: NAlan Cox <alan@redhat.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录