Commit 9a83055
committed
crypto: atmel-tdes: Clarify how tdes dev gets allocated to the tfm
The tdes dev gets allocated to the tfm at alg->init time, there's no
need to overwrite the pointer to tdes_dd afterwards.
There's a single IP per SoC anyway, the first entry from the
atmel_tdes.dev_list is chosen without counting for tfms for example,
in case one thinks of an even distribution of tfms across the TDES
IPs: there's only one. At alg->init time the ctx->dd should already
be NULL, there's no need to check its value before requesting for a
tdes dev.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>1 parent a1c9297 commit 9a83055
1 file changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
203 | 202 | | |
204 | 203 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
213 | 207 | | |
214 | 208 | | |
215 | 209 | | |
| |||
646 | 640 | | |
647 | 641 | | |
648 | 642 | | |
649 | | - | |
650 | 643 | | |
651 | 644 | | |
652 | 645 | | |
| |||
897 | 890 | | |
898 | 891 | | |
899 | 892 | | |
900 | | - | |
901 | 893 | | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
| 894 | + | |
| 895 | + | |
906 | 896 | | |
907 | 897 | | |
| 898 | + | |
| 899 | + | |
908 | 900 | | |
909 | 901 | | |
910 | 902 | | |
| |||
0 commit comments