Commit 6299ae5a authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

staging: dgap: redundant NULL and magic check in dgap_get_modem_info()

The "ch" is already checking in caller.
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 604631ff
...@@ -3061,9 +3061,6 @@ static int dgap_get_modem_info(struct channel_t *ch, unsigned int __user *value) ...@@ -3061,9 +3061,6 @@ static int dgap_get_modem_info(struct channel_t *ch, unsigned int __user *value)
ulong lock_flags; ulong lock_flags;
int rc; int rc;
if (!ch || ch->magic != DGAP_CHANNEL_MAGIC)
return -EIO;
spin_lock_irqsave(&ch->ch_lock, lock_flags); spin_lock_irqsave(&ch->ch_lock, lock_flags);
mstat = readb(&(ch->ch_bs->m_stat)); mstat = readb(&(ch->ch_bs->m_stat));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment