]> git.sur5r.net Git - u-boot/commit
net/tftp.c: cosmetic: do not use assignment in if condition
authorLuca Ceresoli <luca.ceresoli@comelit.it>
Sat, 14 May 2011 05:49:59 +0000 (05:49 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 19 May 2011 19:35:55 +0000 (21:35 +0200)
commit2cb53608076381e2cc4472790a0d768717d01b32
treec092210e97015f62bec7cc4160ef60642e6dfd3c
parent2e320257c8a4b1a4eda0840117fccf7b8c4dd437
net/tftp.c: cosmetic: do not use assignment in if condition

This removes the following checkpatch issue:
 - ERROR: do not use assignment in if condition.

There is one such error left:

  ERROR: do not use assignment in if condition
  #239: FILE: tftp.c:239:
  + if (!ProhibitMcast
  +  && (Bitmap = malloc(Mapsize))
  +  && eth_get_dev()->mcast) {

which would require an additional nested if to be fixed, resulting in longer
and less readable code.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
net/tftp.c