Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25199
b: refs/heads/master
c: e048a8a
h: refs/heads/master
i:
  25197: b89c3da
  25195: 2f9f754
  25191: 213e8a3
  25183: 34121af
v: v3
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 31, 2006
1 parent 6483844 commit d8c9908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5aae277ed67b0271235d3a50908bb48b0e59be26
refs/heads/master: e048a8a688f07b17dbde9a96cab3759b900eae14
8 changes: 3 additions & 5 deletions trunk/drivers/s390/block/dasd_erp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ dasd_alloc_erp_request(char *magic, int cplength, int datasize,
int size;

/* Sanity checks */
if ( magic == NULL || datasize > PAGE_SIZE ||
(cplength*sizeof(struct ccw1)) > PAGE_SIZE)
BUG();
BUG_ON( magic == NULL || datasize > PAGE_SIZE ||
(cplength*sizeof(struct ccw1)) > PAGE_SIZE);

size = (sizeof(struct dasd_ccw_req) + 7L) & -8L;
if (cplength > 0)
Expand Down Expand Up @@ -125,8 +124,7 @@ dasd_default_erp_postaction(struct dasd_ccw_req * cqr)
struct dasd_device *device;
int success;

if (cqr->refers == NULL || cqr->function == NULL)
BUG();
BUG_ON(cqr->refers == NULL || cqr->function == NULL);

device = cqr->device;
success = cqr->status == DASD_CQR_DONE;
Expand Down

0 comments on commit d8c9908

Please sign in to comment.