mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
staging: dgap: redundant NULL and magic check in dgap_get_modem_info()
The "ch" is already checking in caller. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
604631ff0b
commit
6299ae5aa7
1 changed files with 0 additions and 3 deletions
|
|
@ -3061,9 +3061,6 @@ static int dgap_get_modem_info(struct channel_t *ch, unsigned int __user *value)
|
|||
ulong lock_flags;
|
||||
int rc;
|
||||
|
||||
if (!ch || ch->magic != DGAP_CHANNEL_MAGIC)
|
||||
return -EIO;
|
||||
|
||||
spin_lock_irqsave(&ch->ch_lock, lock_flags);
|
||||
|
||||
mstat = readb(&(ch->ch_bs->m_stat));
|
||||
|
|
|
|||
Loading…
Reference in a new issue