]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/net/wireless/ath/ath10k/pci.c
ath10k: remove send completion validation in diag read/write
[linux-beck.git] / drivers / net / wireless / ath / ath10k / pci.c
index 5c05b0cf54a1e502c1ca32412541bcb1c3002c7e..6f3c3e0ad9075fa5619fd0d2fea94cdcd665dbdb 100644 (file)
@@ -920,16 +920,6 @@ static int ath10k_pci_diag_read_mem(struct ath10k *ar, u32 address, void *data,
                        }
                }
 
-               if (nbytes != completed_nbytes) {
-                       ret = -EIO;
-                       goto done;
-               }
-
-               if (buf != (u32)address) {
-                       ret = -EIO;
-                       goto done;
-               }
-
                i = 0;
                while (ath10k_ce_completed_recv_next_nolock(ce_diag, NULL, &buf,
                                                            &completed_nbytes,
@@ -1094,16 +1084,6 @@ static int ath10k_pci_diag_write_mem(struct ath10k *ar, u32 address,
                        }
                }
 
-               if (nbytes != completed_nbytes) {
-                       ret = -EIO;
-                       goto done;
-               }
-
-               if (buf != ce_data) {
-                       ret = -EIO;
-                       goto done;
-               }
-
                i = 0;
                while (ath10k_ce_completed_recv_next_nolock(ce_diag, NULL, &buf,
                                                            &completed_nbytes,