From: Jayachandran C Date: Sun, 30 Oct 2005 23:26:16 +0000 (+0000) Subject: [SERIAL] remove unneeded code from serial_core.c X-Git-Tag: v2.6.15-rc1~59^2~15^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2436b22deac7834e0f87897b207a2dc1407dc40;p=pandora-kernel.git [SERIAL] remove unneeded code from serial_core.c This patch fixes an issue reported by Coverity in serial/serial_core.c Error reported: Variable "&((info)->tty)->flags" tracked as NULL was passed to a function that dereferences it. The later statements in the function assumes 'info->tty != NULL', so this check is not necessary. Probably a 'BUG_ON(info->tty == NULL)' can be added. Signed-off-by: Jayachandran C. Signed-off-by: Andrew Morton Signed-off-by: Russell King --- Reading git-diff-tree failed