diff options
| -rw-r--r-- | drivers/net/usb/r8152.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 57ec23e8ccfa..0aa83fb4838d 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c | |||
| @@ -833,9 +833,6 @@ static void ocp_write_word(struct r8152 *tp, u16 type, u16 index, u32 data) | |||
| 833 | index &= ~3; | 833 | index &= ~3; |
| 834 | } | 834 | } |
| 835 | 835 | ||
| 836 | generic_ocp_read(tp, index, sizeof(tmp), &tmp, type); | ||
| 837 | |||
| 838 | data |= __le32_to_cpu(tmp) & ~mask; | ||
| 839 | tmp = __cpu_to_le32(data); | 836 | tmp = __cpu_to_le32(data); |
| 840 | 837 | ||
| 841 | generic_ocp_write(tp, index, byen, sizeof(tmp), &tmp, type); | 838 | generic_ocp_write(tp, index, byen, sizeof(tmp), &tmp, type); |
| @@ -874,9 +871,6 @@ static void ocp_write_byte(struct r8152 *tp, u16 type, u16 index, u32 data) | |||
| 874 | index &= ~3; | 871 | index &= ~3; |
| 875 | } | 872 | } |
| 876 | 873 | ||
| 877 | generic_ocp_read(tp, index, sizeof(tmp), &tmp, type); | ||
| 878 | |||
| 879 | data |= __le32_to_cpu(tmp) & ~mask; | ||
| 880 | tmp = __cpu_to_le32(data); | 874 | tmp = __cpu_to_le32(data); |
| 881 | 875 | ||
| 882 | generic_ocp_write(tp, index, byen, sizeof(tmp), &tmp, type); | 876 | generic_ocp_write(tp, index, byen, sizeof(tmp), &tmp, type); |
