Christian Marangi 92fbd549a3 generic: fix wrong PTR_ERR use in of net mac address ascii patch
nvmem_cell_read return a pointer error when an error occurs. Currently
we convert the pointer error to an int while the rest of the function
return a void* and expcet an error pointer. Fix this PTR_ERR msuse
fixing compilation warning.

Fixes the following compilation warning:
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address':
net/ethernet/eth.c:547:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
  547 |                 return PTR_ERR(mac);
      |                        ^~~~~~~~~~~~
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address_ascii':
net/ethernet/eth.c:564:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
  564 |                 return PTR_ERR(mac_ascii);
      |                        ^~~~~~~~~~~~~~~~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-22 19:45:20 +08:00
..
2022-09-17 18:22:20 +08:00
2021-06-15 17:58:07 +08:00
2021-06-15 17:58:07 +08:00
2021-06-15 17:58:07 +08:00
2022-09-13 19:25:12 +08:00
2022-01-05 19:08:23 +08:00
2021-06-15 17:58:07 +08:00
2021-06-15 17:58:07 +08:00
2021-06-15 17:58:07 +08:00
2022-12-14 18:35:35 +08:00
2022-12-14 12:00:10 +08:00
2021-06-15 17:58:07 +08:00
2022-12-14 12:10:38 +08:00
2021-06-15 17:58:07 +08:00