Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to qemu-2.6.
[kvmfornfv.git]
/
qemu
/
hw
/
net
/
fsl_etsec
/
rings.c
diff --git
a/qemu/hw/net/fsl_etsec/rings.c
b/qemu/hw/net/fsl_etsec/rings.c
index
68e7b6d
..
ed1de7d
100644
(file)
--- a/
qemu/hw/net/fsl_etsec/rings.c
+++ b/
qemu/hw/net/fsl_etsec/rings.c
@@
-21,6
+21,7
@@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#include "qemu/osdep.h"
#include "net/checksum.h"
#include "etsec.h"
#include "net/checksum.h"
#include "etsec.h"
@@
-464,9
+465,7
@@
static void rx_init_frame(eTSEC *etsec, const uint8_t *buf, size_t size)
etsec->rx_fcb_size = 0;
}
etsec->rx_fcb_size = 0;
}
- if (etsec->rx_buffer != NULL) {
- g_free(etsec->rx_buffer);
- }
+ g_free(etsec->rx_buffer);
/* Do not copy the frame for now */
etsec->rx_buffer = (uint8_t *)buf;
/* Do not copy the frame for now */
etsec->rx_buffer = (uint8_t *)buf;