Skip to content

Commit

Permalink
soc: fsl: qe: drop pointless check in qe_sdma_init()
Browse files Browse the repository at this point in the history
The sdma member of struct qe_immap is not at offset zero, so even if
qe_immr wasn't initialized yet (i.e. NULL), &qe_immr->sdma would not
be NULL.

Reviewed-by: Timur Tabi <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Signed-off-by: Li Yang <[email protected]>
  • Loading branch information
Villemoes authored and Li Yang committed Dec 9, 2019
1 parent 4c3e565 commit 71352b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/soc/fsl/qe/qe.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ static int qe_sdma_init(void)
struct sdma __iomem *sdma = &qe_immr->sdma;
static s32 sdma_buf_offset = -ENOMEM;

if (!sdma)
return -ENODEV;

/* allocate 2 internal temporary buffers (512 bytes size each) for
* the SDMA */
if (sdma_buf_offset < 0) {
Expand Down

0 comments on commit 71352b8

Please sign in to comment.