| .. | .. |
|---|
| 620 | 620 | int iwl_pcie_prepare_card_hw(struct iwl_trans *trans) |
|---|
| 621 | 621 | { |
|---|
| 622 | 622 | int ret; |
|---|
| 623 | | - int t = 0; |
|---|
| 624 | 623 | int iter; |
|---|
| 625 | 624 | |
|---|
| 626 | 625 | IWL_DEBUG_INFO(trans, "iwl_trans_prepare_card_hw enter\n"); |
|---|
| .. | .. |
|---|
| 635 | 634 | usleep_range(1000, 2000); |
|---|
| 636 | 635 | |
|---|
| 637 | 636 | for (iter = 0; iter < 10; iter++) { |
|---|
| 637 | + int t = 0; |
|---|
| 638 | + |
|---|
| 638 | 639 | /* If HW is not ready, prepare the conditions to check again */ |
|---|
| 639 | 640 | iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, |
|---|
| 640 | 641 | CSR_HW_IF_CONFIG_REG_PREPARE); |
|---|
| .. | .. |
|---|
| 2834 | 2835 | void *buf, ssize_t *size, |
|---|
| 2835 | 2836 | ssize_t *bytes_copied) |
|---|
| 2836 | 2837 | { |
|---|
| 2837 | | - int buf_size_left = count - *bytes_copied; |
|---|
| 2838 | + ssize_t buf_size_left = count - *bytes_copied; |
|---|
| 2838 | 2839 | |
|---|
| 2839 | 2840 | buf_size_left = buf_size_left - (buf_size_left % sizeof(u32)); |
|---|
| 2840 | 2841 | if (*size > buf_size_left) |
|---|