net: x25: remove null checks on arrays calling_ae and called_ae

dtefacs.calling_ae and called_ae are both 20 element __u8 arrays and
cannot be null and hence are redundant checks. Remove these.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Colin Ian King 2016-09-08 08:42:06 +01:00 коммит произвёл David S. Miller
Родитель c24acf03c7
Коммит 05f1b12f71
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -1500,12 +1500,8 @@ out_fac_release:
goto out_dtefac_release; goto out_dtefac_release;
if (dtefacs.calling_len > X25_MAX_AE_LEN) if (dtefacs.calling_len > X25_MAX_AE_LEN)
goto out_dtefac_release; goto out_dtefac_release;
if (dtefacs.calling_ae == NULL)
goto out_dtefac_release;
if (dtefacs.called_len > X25_MAX_AE_LEN) if (dtefacs.called_len > X25_MAX_AE_LEN)
goto out_dtefac_release; goto out_dtefac_release;
if (dtefacs.called_ae == NULL)
goto out_dtefac_release;
x25->dte_facilities = dtefacs; x25->dte_facilities = dtefacs;
rc = 0; rc = 0;
out_dtefac_release: out_dtefac_release: