Changeset 522 for GPL/trunk/alsa-kernel/pci/trident
- Timestamp:
- Jul 22, 2010, 7:20:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/trident/trident_memory.c
r399 r522 196 196 int idx, page; 197 197 198 #pragma disable_message (136) 198 199 if (snd_BUG_ON(runtime->dma_bytes <= 0 || 199 200 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * 200 201 SNDRV_TRIDENT_PAGE_SIZE)) 201 202 return NULL; 203 #pragma enable_message (136) 202 204 hdr = trident->tlb.memhdr; 203 205 if (snd_BUG_ON(!hdr)) … … 212 214 return NULL; 213 215 } 214 216 215 217 /* set TLB entries */ 216 218 idx = 0; … … 245 247 unsigned long ptr; 246 248 249 #pragma disable_message (136) 247 250 if (snd_BUG_ON(runtime->dma_bytes <= 0 || 248 251 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * 249 252 SNDRV_TRIDENT_PAGE_SIZE)) 250 253 return NULL; 254 #pragma enable_message (136) 251 255 hdr = trident->tlb.memhdr; 252 256 if (snd_BUG_ON(!hdr)) … … 259 263 return NULL; 260 264 } 261 265 262 266 /* set TLB entries */ 263 267 addr = runtime->dma_addr;
Note:
See TracChangeset
for help on using the changeset viewer.
