diff for duplicates of <5DE8C1E3.4080204@bfs.de> diff --git a/a/1.txt b/N1/1.txt index b64e6d8..a1c34be 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -41,7 +41,7 @@ Am 05.12.2019 08:24, schrieb Uwe Kleine-König: > clk_rate = clk_get_rate(sun4i_pwm->clk); > > @@ -170,6 +170,8 @@ static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm, -> if (prescaler = 0) { +> if (prescaler == 0) { > /* Go up from the first divider */ > for (prescaler = 0; prescaler < PWM_PRESCAL_MASK; prescaler++) { > + unsigned int pval; @@ -60,7 +60,7 @@ if ( ! pval ) continue; if you feel adventures you could also replace the for() for a while() -since we know that prescaler = 0. +since we know that prescaler == 0. while ( prescaler < PWM_PRESCAL_MASK ) { @@ -71,3 +71,8 @@ unsigned int pval = prescaler_table[prescaler++]; jm2c, wh + +_______________________________________________ +linux-arm-kernel mailing list +linux-arm-kernel@lists.infradead.org +http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/a/content_digest b/N1/content_digest index 85f60c0..da08daf 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\020191205072404.6858-1-u.kleine-koenig@pengutronix.de\0" "From\0walter harms <wharms@bfs.de>\0" "Subject\0Re: [PATCH] pwm: sun4i: Narrow scope of local variable\0" - "Date\0Thu, 05 Dec 2019 08:37:55 +0000\0" + "Date\0Thu, 05 Dec 2019 09:37:55 +0100\0" "To\0Uwe Kleine-K\303\266nig <u.kleine-koenig@pengutronix.de>\0" "Cc\0linux-pwm@vger.kernel.org" kernel-janitors@vger.kernel.org @@ -56,7 +56,7 @@ "> \tclk_rate = clk_get_rate(sun4i_pwm->clk);\n" "> \n" "> @@ -170,6 +170,8 @@ static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm,\n" - "> \tif (prescaler = 0) {\n" + "> \tif (prescaler == 0) {\n" "> \t\t/* Go up from the first divider */\n" "> \t\tfor (prescaler = 0; prescaler < PWM_PRESCAL_MASK; prescaler++) {\n" "> +\t\t\tunsigned int pval;\n" @@ -75,7 +75,7 @@ " continue;\n" "\n" "if you feel adventures you could also replace the for() for a while()\n" - "since we know that prescaler = 0.\n" + "since we know that prescaler == 0.\n" "\n" "while ( prescaler < PWM_PRESCAL_MASK )\n" "{\n" @@ -85,6 +85,11 @@ "\n" "jm2c,\n" "\n" - wh + " wh\n" + "\n" + "_______________________________________________\n" + "linux-arm-kernel mailing list\n" + "linux-arm-kernel@lists.infradead.org\n" + http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -298559f0c652467282b2cc90a0a478b53da5372fd46cb517aecba3501e0b37de +d60a1387e9137dc13a2a1287e6981f849d6d4b9f651aa78d9681aa0ae1b45bc1
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.