Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
drivers
/
staging
/
gdm72xx
/
gdm_sdio.c
diff --git
a/kernel/drivers/staging/gdm72xx/gdm_sdio.c
b/kernel/drivers/staging/gdm72xx/gdm_sdio.c
index
a5fd079
..
b0521da
100644
(file)
--- a/
kernel/drivers/staging/gdm72xx/gdm_sdio.c
+++ b/
kernel/drivers/staging/gdm72xx/gdm_sdio.c
@@
-173,12
+173,12
@@
static int init_sdio(struct sdiowm_dev *sdev)
spin_lock_init(&tx->lock);
tx->sdu_buf = kmalloc(SDU_TX_BUF_SIZE, GFP_KERNEL);
spin_lock_init(&tx->lock);
tx->sdu_buf = kmalloc(SDU_TX_BUF_SIZE, GFP_KERNEL);
- if (
tx->sdu_buf == NULL
)
+ if (
!tx->sdu_buf
)
goto fail;
for (i = 0; i < MAX_NR_SDU_BUF; i++) {
t = alloc_tx_struct(tx);
goto fail;
for (i = 0; i < MAX_NR_SDU_BUF; i++) {
t = alloc_tx_struct(tx);
- if (
t == NULL
) {
+ if (
!t
) {
ret = -ENOMEM;
goto fail;
}
ret = -ENOMEM;
goto fail;
}
@@
-192,7
+192,7
@@
static int init_sdio(struct sdiowm_dev *sdev)
for (i = 0; i < MAX_NR_RX_BUF; i++) {
r = alloc_rx_struct(rx);
for (i = 0; i < MAX_NR_RX_BUF; i++) {
r = alloc_rx_struct(rx);
- if (
r == NULL
) {
+ if (
!r
) {
ret = -ENOMEM;
goto fail;
}
ret = -ENOMEM;
goto fail;
}
@@
-200,7
+200,7
@@
static int init_sdio(struct sdiowm_dev *sdev)
}
rx->rx_buf = kmalloc(RX_BUF_SIZE, GFP_KERNEL);
}
rx->rx_buf = kmalloc(RX_BUF_SIZE, GFP_KERNEL);
- if (
rx->rx_buf == NULL
)
+ if (
!rx->rx_buf
)
goto fail;
return 0;
goto fail;
return 0;
@@
-359,7
+359,7
@@
static void do_tx(struct work_struct *work)
is_sdu = 1;
}
is_sdu = 1;
}
- if (!is_sdu &&
t == NULL
) {
+ if (!is_sdu &&
!t
) {
spin_unlock_irqrestore(&tx->lock, flags);
return;
}
spin_unlock_irqrestore(&tx->lock, flags);
return;
}
@@
-393,7
+393,7
@@
static int gdm_sdio_send(void *priv_dev, void *data, int len,
cmd_evt = (pkt[0] << 8) | pkt[1];
if (cmd_evt == WIMAX_TX_SDU) {
t = get_tx_struct(tx, &no_spc);
cmd_evt = (pkt[0] << 8) | pkt[1];
if (cmd_evt == WIMAX_TX_SDU) {
t = get_tx_struct(tx, &no_spc);
- if (
t == NULL
) {
+ if (
!t
) {
/* This case must not happen. */
spin_unlock_irqrestore(&tx->lock, flags);
return -ENOSPC;
/* This case must not happen. */
spin_unlock_irqrestore(&tx->lock, flags);
return -ENOSPC;
@@
-407,7
+407,7
@@
static int gdm_sdio_send(void *priv_dev, void *data, int len,
t->cb_data = cb_data;
} else {
t = alloc_tx_struct(tx);
t->cb_data = cb_data;
} else {
t = alloc_tx_struct(tx);
- if (
t == NULL
) {
+ if (
!t
) {
spin_unlock_irqrestore(&tx->lock, flags);
return -ENOMEM;
}
spin_unlock_irqrestore(&tx->lock, flags);
return -ENOMEM;
}
@@
-581,7
+581,7
@@
static int gdm_sdio_receive(void *priv_dev,
spin_lock_irqsave(&rx->lock, flags);
r = get_rx_struct(rx);
spin_lock_irqsave(&rx->lock, flags);
r = get_rx_struct(rx);
- if (
r == NULL
) {
+ if (
!r
) {
spin_unlock_irqrestore(&rx->lock, flags);
return -ENOMEM;
}
spin_unlock_irqrestore(&rx->lock, flags);
return -ENOMEM;
}
@@
-615,12
+615,12
@@
static int sdio_wimax_probe(struct sdio_func *func,
return ret;
phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL);
return ret;
phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL);
- if (
phy_dev == NULL
) {
+ if (
!phy_dev
) {
ret = -ENOMEM;
goto out;
}
sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
ret = -ENOMEM;
goto out;
}
sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
- if (
sdev == NULL
) {
+ if (
!sdev
) {
ret = -ENOMEM;
goto out;
}
ret = -ENOMEM;
goto out;
}