• L
    net/tftp.c: cosmetic: do not use assignment in if condition · 2cb53608
    Luca Ceresoli 提交于
    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: NLuca Ceresoli <luca.ceresoli@comelit.it>
    Cc: Wolfgang Denk <wd@denx.de>
    2cb53608
tftp.c 17.9 KB