mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
[PATCH] pktcdvd: BUG_ON cleanups
Remove some redundant BUG_ON() statements in pktcdvd and move one run-time check to compile-time. Signed-off-by: Peter Osterlund <petero2@telia.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1107d2e035
commit
610827dee8
2 changed files with 6 additions and 6 deletions
|
@ -166,6 +166,9 @@ struct packet_iosched
|
|||
/*
|
||||
* 32 buffers of 2048 bytes
|
||||
*/
|
||||
#if (PAGE_SIZE % CD_FRAMESIZE) != 0
|
||||
#error "PAGE_SIZE must be a multiple of CD_FRAMESIZE"
|
||||
#endif
|
||||
#define PACKET_MAX_SIZE 32
|
||||
#define PAGES_PER_PACKET (PACKET_MAX_SIZE * CD_FRAMESIZE / PAGE_SIZE)
|
||||
#define PACKET_MAX_SECTORS (PACKET_MAX_SIZE * CD_FRAMESIZE >> 9)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue