Commit 5aa00b6
mailbox: omap: Remove mbox_chan_to_omap_mbox()
This function only checks if mbox_chan *chan is not NULL, but that cannot
be the case and if it was returning NULL which is not later checked
doesn't save us from this. The second check for chan->con_priv is
completely redundant as if it was NULL we would return NULL just the
same. Simply dereference con_priv directly and remove this function.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>1 parent 34123b1 commit 5aa00b6
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 106 | | |
115 | 107 | | |
116 | 108 | | |
| |||
357 | 349 | | |
358 | 350 | | |
359 | 351 | | |
360 | | - | |
| 352 | + | |
361 | 353 | | |
362 | 354 | | |
363 | 355 | | |
| |||
372 | 364 | | |
373 | 365 | | |
374 | 366 | | |
375 | | - | |
| 367 | + | |
376 | 368 | | |
377 | 369 | | |
378 | 370 | | |
| |||
415 | 407 | | |
416 | 408 | | |
417 | 409 | | |
418 | | - | |
| 410 | + | |
419 | 411 | | |
420 | 412 | | |
421 | 413 | | |
| |||
0 commit comments