libc: atoi() avoid fallthroughs in switch cases
libc: atoi() avoid fallthroughs in switch cases

This is a tentative fix for CID 93807, a valid Coverity warning;
however the code is valid too.

We can choose to silence the warning or rewrite the code in a way that
makes it more verbose but keeps Coverity happy.

Coverity complains about doing an implicit fallthrough in switch case
statement. I prefer patching the code to make it explicit, as the
compiler will optimize out, to avoid having to constantly filter out
the checker's warnings.

Coverity-CID: 93807
Change-Id: I7be334d48567bf52fc2b21de043310e0f73b72db
Signed-off-by: Inaky Perez-Gonzalez <96af2f95d738a33e3cb28686ea74cc090643af9b@intel.com>

kraj/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,GiulianoFranchetto/zephyr,pklazy/zephyr,nashif/zephyr,erwango/zephyr,holtmann/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3220,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,bboozzoo/zephyr,aceofall/zephyr-iotos,galak/zephyr,bigdinotech/zephyr,erwango/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,fbsder/zephyr,Vudentz/zephyr,pklazy/zephyr,explora26/zephyr,rsalveti/zephyr,zephyriot/zephyr,Vudentz/zephyr,aceofall/zephyr-iotos,fbsder/zephyr,tidyjiang8/zephyr-doc,runchip/zephyr-cc3220,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,fbsder/zephyr,explora26/zephyr,mbolivar/zephyr,tidyjiang8/zephyr-doc,zephyriot/zephyr,nashif/zephyr,bboozzoo/zephyr,nashif/zephyr,fractalclone/zephyr-riscv,kraj/zephyr,explora26/zephyr,kraj/zephyr,runchip/zephyr-cc3200,runchip/zephyr-cc3220,runchip/zephyr-cc3200,fractalclone/zephyr-riscv,holtmann/zephyr,finikorg/zephyr,erwango/zephyr,pklazy/zephyr,ldts/zephyr,nashif/zephyr,kraj/zephyr,sharronliu/zephyr,sharronliu/zephyr,Vudentz/zephyr,ldts/zephyr,holtmann/zephyr,bboozzoo/zephyr,ldts/zephyr,punitvara/zephyr,Vudentz/zephyr,sharronliu/zephyr,rsalveti/zephyr,erwango/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,fbsder/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3200,mbolivar/zephyr,holtmann/zephyr,holtmann/zephyr,sharronliu/zephyr,Vudentz/zephyr,nashif/zephyr,pklazy/zephyr,mbolivar/zephyr,erwango/zephyr,aceofall/zephyr-iotos,rsalveti/zephyr,runchip/zephyr-cc3220,sharronliu/zephyr,pklazy/zephyr,tidyjiang8/zephyr-doc,punitvara/zephyr,galak/zephyr,ldts/zephyr,rsalveti/zephyr,aceofall/zephyr-iotos,finikorg/zephyr,punitvara/zephyr,zephyriot/zephyr,rsalveti/zephyr,zephyriot/zephyr,aceofall/zephyr-iotos,galak/zephyr,tidyjiang8/zephyr-doc,runchip/zephyr-cc3200,punitvara/zephyr,kraj/zephyr,mbolivar/zephyr,zephyriot/zephyr,bboozzoo/zephyr,galak/zephyr,bigdinotech/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,bboozzoo/zephyr,punitvara/zephyr,mbolivar/zephyr,ldts/zephyr,runchip/zephyr-cc3200,tidyjiang8/zephyr-doc,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,explora26/zephyr